mpegtsbase: Flush out the packetizer on flushing seeks
authorEdward Hervey <edward.hervey@collabora.co.uk>
Fri, 2 Mar 2012 16:10:28 +0000 (17:10 +0100)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Fri, 2 Mar 2012 16:19:45 +0000 (17:19 +0100)
... else we end up with bogus data/offsets

gst/mpegtsdemux/mpegtsbase.c

index f09d175..68af312 100644 (file)
@@ -1634,6 +1634,7 @@ mpegts_base_handle_seek_event (MpegTSBase * base, GstPad * pad,
     gst_pad_push_event (base->sinkpad, gst_event_new_flush_stop ());
     /* And actually flush our pending data */
     mpegts_base_flush (base);
+    mpegts_packetizer_flush (base->packetizer);
   }
 
   if (flags & (GST_SEEK_FLAG_SEGMENT | GST_SEEK_FLAG_SKIP)) {