[gst-cvs] gst-plugins-good: flvdemux: Clear adapter on discontinuities

Sebastian Dröge slomo at kemper.freedesktop.org
Sun Jun 6 06:17:21 PDT 2010


Module: gst-plugins-good
Branch: master
Commit: 6e9e48c0b912a3d5441a840f101be11672a9b018
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=6e9e48c0b912a3d5441a840f101be11672a9b018

Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date:   Sun Jun  6 15:17:00 2010 +0200

flvdemux: Clear adapter on discontinuities

---

 gst/flv/gstflvdemux.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/gst/flv/gstflvdemux.c b/gst/flv/gstflvdemux.c
index 35bbc42..69876c9 100644
--- a/gst/flv/gstflvdemux.c
+++ b/gst/flv/gstflvdemux.c
@@ -1621,6 +1621,11 @@ gst_flv_demux_chain (GstPad * pad, GstBuffer * 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);
 
   if (demux->seeking) {





More information about the Gstreamer-commits mailing list