v4l2allocator: Set the flags on the object
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 1 May 2014 17:04:08 +0000 (13:04 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 8 May 2014 19:56:37 +0000 (15:56 -0400)
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.

sys/v4l2/gstv4l2allocator.c

index 48a71d3..4677019 100644 (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;