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
@ -4555,8 +4555,16 @@ gst_v4l2_object_propose_allocation (GstV4l2Object * obj, GstQuery * query)
|
|||||||
if (caps == NULL)
|
if (caps == NULL)
|
||||||
goto no_caps;
|
goto no_caps;
|
||||||
|
|
||||||
if ((pool = obj->pool))
|
switch (obj->mode) {
|
||||||
gst_object_ref (pool);
|
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) {
|
if (pool != NULL) {
|
||||||
GstCaps *pcaps;
|
GstCaps *pcaps;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user