summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJean-Christophe Trotin <jean-christophe.trotin@st.com>2017-01-16 15:17:15 +0100
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2017-01-16 10:19:18 -0500
commit2b80cd14b0a65959a1d109901451d822e4bb513b (patch)
tree896a3e1bcca249155ae92003aaee88bbcc41e274 /sys
parent7717d088351d7ee571989fb6cd6a9aa679e52989 (diff)
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
Diffstat (limited to 'sys')
-rw-r--r--sys/v4l2/gstv4l2allocator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/v4l2/gstv4l2allocator.c b/sys/v4l2/gstv4l2allocator.c
index 655c2cacc..7d9b1ec24 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))