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
@ -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…
x
Reference in New Issue
Block a user