summaryrefslogtreecommitdiff
path: root/yavta.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2015-05-05 10:36:35 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2015-05-05 10:36:35 +0300
commit9aa77a77b1d81a5c998f2707dc7004d2bf994f30 (patch)
tree1d8e1cd5ec22bce39548cca80f96c0e7cf657957 /yavta.c
parentbbe738f9a29d240c6cc0b4f17e463193b719aa7e (diff)
Zero the planes array before queuing buffers
V4L2 requires reserved fields to be zeroed. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'yavta.c')
-rw-r--r--yavta.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/yavta.c b/yavta.c
index 930645d..7d8ac8e 100644
--- a/yavta.c
+++ b/yavta.c
@@ -965,6 +965,8 @@ static int video_queue_buffer(struct device *dev, int index, enum buffer_fill_mo
unsigned int i;
memset(&buf, 0, sizeof buf);
+ memset(&planes, 0, sizeof planes);
+
buf.index = index;
buf.type = dev->type;
buf.memory = dev->memtype;