v4l2allocator: Set the flags on the object

We where not setting the probed flags on the allocator, which mean even if
CREATE_BUFS was supported on some driver, it would endup being ignored.
This commit is contained in:
Nicolas Dufresne 2014-05-01 13:04:08 -04:00
parent cb311d57f5
commit 428d63c2e5

View file

@ -614,6 +614,8 @@ gst_v4l2_allocator_new (GstObject * parent, gint video_fd,
flags |= GST_V4L2_ALLOCATOR_PROBE (allocator, USERPTR);
flags |= GST_V4L2_ALLOCATOR_PROBE (allocator, DMABUF);
GST_OBJECT_FLAG_SET (allocator, flags);
if (flags == 0)
goto not_supported;