mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
v4l2: clear flags before reusing buffer from buffer pool
note: this really only affects v4l2sink since gst_v4l2_buffer_pool_get() is only called once per buffer in the v4l2src case (in gst_v4l2src_buffer_pool_activate())
This commit is contained in:
parent
e24cfa7250
commit
ecfbaf58a5
1 changed files with 3 additions and 1 deletions
|
@ -463,8 +463,10 @@ gst_v4l2_buffer_pool_get (GstV4l2BufferPool * pool)
|
|||
{
|
||||
GstV4l2Buffer *buf = g_async_queue_try_pop (pool->avail_buffers);
|
||||
|
||||
if (buf)
|
||||
if (buf) {
|
||||
GST_BUFFER_SIZE (buf) = buf->vbuffer.length;
|
||||
GST_BUFFER_FLAG_UNSET (buf, 0xffffffff);
|
||||
}
|
||||
|
||||
pool->running = TRUE;
|
||||
|
||||
|
|
Loading…
Reference in a new issue