summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorArnaud Vrac <avrac@freebox.fr>2015-05-09 15:52:22 +0200
committerEdward Hervey <bilboed@bilboed.com>2016-08-03 17:15:40 +0200
commit35a1720de17b0cd6a902898336a0946692dc9e63 (patch)
tree213566b416204432d114810e55d2822ba7b57611 /gst
parentebab5b17f423ba77c3228f733509dbfdb419b2b1 (diff)
downloadgstreamer-plugins-bad-35a1720de17b0cd6a902898336a0946692dc9e63.tar.gz
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
Diffstat (limited to 'gst')
-rw-r--r--gst/mpegtsdemux/tsdemux.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/mpegtsdemux/tsdemux.c b/gst/mpegtsdemux/tsdemux.c
index cd7fc5aed..4aa20d586 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;
}
}