From: Marc Leeman Date: Fri, 8 Nov 2013 11:09:21 +0000 (+0000) Subject: v4l2: init v4l2_buffer to 0x0 before ioctl X-Git-Tag: 1.19.3~509^2~5178 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bc87f39a90eb480da39637ba005f242fd8d49a90;p=platform%2Fupstream%2Fgstreamer.git v4l2: init v4l2_buffer to 0x0 before ioctl https://bugzilla.gnome.org/show_bug.cgi?id=712137 --- diff --git a/sys/v4l2/gstv4l2bufferpool.c b/sys/v4l2/gstv4l2bufferpool.c index f5396d9..463dd44 100644 --- a/sys/v4l2/gstv4l2bufferpool.c +++ b/sys/v4l2/gstv4l2bufferpool.c @@ -191,6 +191,7 @@ gst_v4l2_buffer_pool_alloc_buffer (GstBufferPool * bpool, GstBuffer ** buffer, GST_LOG_OBJECT (pool, "creating buffer %u, %p", index, newbuf); + memset (&meta->vbuffer, 0x0, sizeof (struct v4l2_buffer)); meta->vbuffer.index = index; meta->vbuffer.type = obj->type; meta->vbuffer.memory = V4L2_MEMORY_MMAP;