From 35a1720de17b0cd6a902898336a0946692dc9e63 Mon Sep 17 00:00:00 2001 From: Arnaud Vrac Date: Sat, 9 May 2015 15:52:22 +0200 Subject: [PATCH] mpegtsdemux: only wait for PCR when PCR pid is set Streams without PCR make senses in HLS, where the playlist timestamps can be used to seek or calculate the duration. https://bugzilla.gnome.org/show_bug.cgi?id=608148 --- gst/mpegtsdemux/tsdemux.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/mpegtsdemux/tsdemux.c b/gst/mpegtsdemux/tsdemux.c index cd7fc5aeda..4aa20d5868 100644 --- a/gst/mpegtsdemux/tsdemux.c +++ b/gst/mpegtsdemux/tsdemux.c @@ -1651,6 +1651,8 @@ gst_ts_demux_stream_added (MpegTSBase * base, MpegTSBaseStream * bstream, stream->nb_out_buffers = 0; stream->gap_ref_buffers = 0; stream->gap_ref_pts = GST_CLOCK_TIME_NONE; + /* Only wait for a valid timestamp if we have a PCR_PID */ + stream->pending_ts = program->pcr_pid < 0x1fff; stream->continuity_counter = CONTINUITY_UNSET; } } -- 2.34.1