mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
v4l2object: Only offer MMAP/DMABUF pool
The propose allocation was offering a pool even in DMABUF_IMPORT or USERPTR mode. These pool are internal only.
This commit is contained in:
parent
fe5236be87
commit
66351255f7
1 changed files with 10 additions and 2 deletions
|
@ -4555,8 +4555,16 @@ gst_v4l2_object_propose_allocation (GstV4l2Object * obj, GstQuery * query)
|
|||
if (caps == NULL)
|
||||
goto no_caps;
|
||||
|
||||
if ((pool = obj->pool))
|
||||
gst_object_ref (pool);
|
||||
switch (obj->mode) {
|
||||
case GST_V4L2_IO_MMAP:
|
||||
case GST_V4L2_IO_DMABUF:
|
||||
if ((pool = obj->pool))
|
||||
gst_object_ref (pool);
|
||||
break;
|
||||
default:
|
||||
pool = NULL;
|
||||
break;
|
||||
}
|
||||
|
||||
if (pool != NULL) {
|
||||
GstCaps *pcaps;
|
||||
|
|
Loading…
Reference in a new issue