mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-09 17:44:14 +00:00
mpegdemux: check base_time before calculating new_start
https://bugzilla.gnome.org/show_bug.cgi?id=623387
This commit is contained in:
parent
df12aae15b
commit
1d710ad13a
1 changed files with 2 additions and 1 deletions
|
@ -598,7 +598,8 @@ gst_flups_demux_send_data (GstFluPSDemux * demux, GstFluPSStream * stream,
|
|||
GST_TIME_ARGS (demux->src_segment.position),
|
||||
GST_TIME_ARGS (MPEGTIME_TO_GSTTIME (demux->current_scr)));
|
||||
|
||||
if (demux->src_segment.position != GST_CLOCK_TIME_NONE) {
|
||||
if (demux->src_segment.position != GST_CLOCK_TIME_NONE &&
|
||||
demux->base_time != GST_CLOCK_TIME_NONE) {
|
||||
GstClockTime new_time = demux->base_time + demux->src_segment.position;
|
||||
|
||||
if (stream->last_ts == GST_CLOCK_TIME_NONE || stream->last_ts < new_time) {
|
||||
|
|
Loading…
Reference in a new issue