From 842c4a3d2c033aa1c0b003e9ee562040eca48cea Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Fri, 23 May 2014 15:07:19 +1000 Subject: [PATCH] tsdemux: Reset pending_ts on a discont, to re-measure initial timestamps 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/mpegtsdemux/tsdemux.c b/gst/mpegtsdemux/tsdemux.c index c7038c9..06cec8d 100644 --- a/gst/mpegtsdemux/tsdemux.c +++ b/gst/mpegtsdemux/tsdemux.c @@ -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; } -- 2.7.4