From 2b80cd14b0a65959a1d109901451d822e4bb513b Mon Sep 17 00:00:00 2001 From: Jean-Christophe Trotin Date: Mon, 16 Jan 2017 15:17:15 +0100 Subject: [PATCH] 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 --- sys/v4l2/gstv4l2allocator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/v4l2/gstv4l2allocator.c b/sys/v4l2/gstv4l2allocator.c index 655c2cacc3..7d9b1ec241 100644 --- a/sys/v4l2/gstv4l2allocator.c +++ b/sys/v4l2/gstv4l2allocator.c @@ -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))