mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
dashdemux: Don't increase current position if we just downloaded the moof in KEYUNIT mode
This commit is contained in:
parent
245d73e516
commit
df420cc21f
1 changed files with 4 additions and 1 deletions
|
@ -1792,7 +1792,10 @@ gst_dash_demux_stream_advance_fragment (GstAdaptiveDemuxStream * stream)
|
|||
&& GST_ADAPTIVE_DEMUX_IN_TRICKMODE_KEY_UNITS (dashdemux)) {
|
||||
GST_LOG_OBJECT (stream->pad, "current sync sample #%d",
|
||||
dashstream->current_sync_sample);
|
||||
dur = dashstream->keyframe_average_distance;
|
||||
if (dashstream->current_sync_sample == -1)
|
||||
dur = 0;
|
||||
else
|
||||
dur = dashstream->keyframe_average_distance;
|
||||
} else if (gst_mpd_client_has_isoff_ondemand_profile (dashdemux->client) &&
|
||||
dashstream->sidx_position != 0
|
||||
&& dashstream->sidx_position != GST_CLOCK_TIME_NONE
|
||||
|
|
Loading…
Reference in a new issue