flvdemux: Clear adapter on discontinuities

This commit is contained in:
Sebastian Dröge 2010-06-06 15:17:00 +02:00
parent b2ff8042d3
commit 6e9e48c0b9

View file

@ -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) {