v4l2allocator: Fix CREATE_BUF probing
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 3 Dec 2014 21:27:59 +0000 (16:27 -0500)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 4 Dec 2014 22:00:25 +0000 (17:00 -0500)
Current for every memory type we where probing MMAP CREATE_BUFS ioct.

https://bugzilla.gnome.org/show_bug.cgi?id=741134

sys/v4l2/gstv4l2allocator.c

index bf1750c..7510127 100644 (file)
@@ -490,7 +490,7 @@ gst_v4l2_allocator_probe (GstV4l2Allocator * allocator, guint32 memory,
 
     flags |= breq_flag;
 
-    bcreate.memory = V4L2_MEMORY_MMAP;
+    bcreate.memory = allocator->type;
     bcreate.format = allocator->format;
 
     if ((v4l2_ioctl (allocator->video_fd, VIDIOC_CREATE_BUFS, &bcreate) == 0))