mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
v4l2: clear DISCONT flag when recycling buffers into the buffer pool
The base class may have set the DISCONT flag on the first buffer pushed out. We need to clear that when recycling buffers back into the buffer pool, otherwise we constantly push out buffers with the discont flag set, which might upset downstream elements, esp. for compressed formats like mpeg-ts.
This commit is contained in:
parent
4cd9255f0a
commit
6f707fcbca
1 changed files with 1 additions and 0 deletions
|
@ -98,6 +98,7 @@ gst_v4l2_buffer_finalize (GstV4l2Buffer * buffer)
|
|||
GST_LOG_OBJECT (pool->v4l2elem, "reviving buffer %p, %d", buffer, index);
|
||||
gst_buffer_ref (GST_BUFFER (buffer));
|
||||
GST_BUFFER_SIZE (buffer) = 0;
|
||||
GST_BUFFER_FLAG_UNSET (buffer, GST_BUFFER_FLAG_DISCONT);
|
||||
pool->buffers[index] = buffer;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue