mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
flvdemux: Clear adapter on discontinuities
This commit is contained in:
parent
b2ff8042d3
commit
6e9e48c0b9
1 changed files with 5 additions and 0 deletions
|
@ -1621,6 +1621,11 @@ gst_flv_demux_chain (GstPad * pad, GstBuffer * buffer)
|
||||||
demux->offset = GST_BUFFER_OFFSET (buffer);
|
demux->offset = GST_BUFFER_OFFSET (buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (GST_BUFFER_FLAG_IS_SET (buffer, GST_BUFFER_FLAG_DISCONT)) {
|
||||||
|
GST_DEBUG_OBJECT (demux, "Discontinuity");
|
||||||
|
gst_adapter_clear (demux->adapter);
|
||||||
|
}
|
||||||
|
|
||||||
gst_adapter_push (demux->adapter, buffer);
|
gst_adapter_push (demux->adapter, buffer);
|
||||||
|
|
||||||
if (demux->seeking) {
|
if (demux->seeking) {
|
||||||
|
|
Loading…
Reference in a new issue