projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4bc81d
)
v4l2: init v4l2_buffer to 0x0 before ioctl
author
Marc Leeman
<marc.leeman@gmail.com>
Fri, 8 Nov 2013 11:09:21 +0000
(11:09 +0000)
committer
Olivier CrĂȘte
<olivier.crete@collabora.com>
Tue, 12 Nov 2013 18:08:33 +0000
(13:08 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=712137
sys/v4l2/gstv4l2bufferpool.c
patch
|
blob
|
history
diff --git
a/sys/v4l2/gstv4l2bufferpool.c
b/sys/v4l2/gstv4l2bufferpool.c
index
f5396d9
..
463dd44
100644
(file)
--- 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;