v4l2allocator: Fix CREATE_BUF probing

Current for every memory type we where probing MMAP CREATE_BUFS ioct.

https://bugzilla.gnome.org/show_bug.cgi?id=741134
This commit is contained in:
Nicolas Dufresne 2014-12-03 16:27:59 -05:00
parent c466ff4748
commit b80edd2ee2

View 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))