mpegtsbase: Flush out the packetizer on flushing seeks

... else we end up with bogus data/offsets
This commit is contained in:
Edward Hervey 2012-03-02 17:10:28 +01:00
parent ece4dfc3c6
commit a3ae51be29

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