mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
v4l2: init v4l2_buffer to 0x0 before ioctl
https://bugzilla.gnome.org/show_bug.cgi?id=712137
This commit is contained in:
parent
e4bc81d7d2
commit
bc87f39a90
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue