tsdemux: Reset pending_ts on a discont, to re-measure initial timestamps
authorJan Schmidt <jan@centricular.com>
Fri, 23 May 2014 05:07:19 +0000 (15:07 +1000)
committerJan Schmidt <jan@centricular.com>
Wed, 4 Jun 2014 11:54:43 +0000 (21:54 +1000)
Since all the other timestamp tracking now gets reset on a discont,
it makes sense to wait for a PCR and timestamp buffers like when
playback first starts

gst/mpegtsdemux/tsdemux.c

index c7038c9..06cec8d 100644 (file)
@@ -1229,6 +1229,7 @@ gst_ts_demux_stream_flush (TSDemuxStream * stream, GstTSDemux * tsdemux)
   stream->first_dts = GST_CLOCK_TIME_NONE;
   stream->raw_pts = -1;
   stream->raw_dts = -1;
+  stream->pending_ts = TRUE;
   stream->continuity_counter = CONTINUITY_UNSET;
 }