mssdemux: handle FLUSH events by resetting the demuxer state
authorLouis-Francis Ratté-Boulianne <louis-francis.ratte-boulianne@collabora.co.uk>
Fri, 1 Feb 2013 22:44:04 +0000 (17:44 -0500)
committerThiago Santos <thiago.sousa.santos@collabora.com>
Wed, 8 May 2013 00:09:47 +0000 (21:09 -0300)
ext/smoothstreaming/gstmssdemux.c

index 6fc33f4..d15ac36 100644 (file)
@@ -447,6 +447,9 @@ gst_mss_demux_event (GstPad * pad, GstEvent * event)
   gboolean ret = TRUE;
 
   switch (GST_EVENT_TYPE (event)) {
+    case GST_EVENT_FLUSH_STOP:
+      gst_mss_demux_reset (mssdemux);
+      break;
     case GST_EVENT_EOS:
       if (mssdemux->manifest_buffer == NULL) {
         GST_WARNING_OBJECT (mssdemux, "Received EOS without a manifest.");