Commit d1a618ca authored by Nicolas Dufresne's avatar Nicolas Dufresne

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.
parent ab1f4cc8
......@@ -4553,8 +4553,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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment