v4l2allocator: fix memory type in allocator probe

The buffer memory type provided to the VIDIOC_CREATE_BUFS ioctl shall
be set with the value ("memory") given as input parameter of the
gst_v4l2_allocator_probe() function.

https://bugzilla.gnome.org/show_bug.cgi?id=777327
This commit is contained in:
Jean-Christophe Trotin 2017-01-16 15:17:15 +01:00 committed by Nicolas Dufresne
parent 7717d08835
commit 2b80cd14b0

View file

@ -489,7 +489,7 @@ gst_v4l2_allocator_probe (GstV4l2Allocator * allocator, guint32 memory,
flags |= breq_flag;
bcreate.memory = allocator->type;
bcreate.memory = memory;
bcreate.format = allocator->format;
if ((v4l2_ioctl (allocator->video_fd, VIDIOC_CREATE_BUFS, &bcreate) == 0))