mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
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
This commit is contained in:
parent
ebab5b17f4
commit
35a1720de1
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue