dashdemux: Don't increase current position if we just downloaded the moof in KEYUNIT mode

This commit is contained in:
Sebastian Dröge 2017-03-06 14:27:20 +02:00 committed by Edward Hervey
parent 245d73e516
commit df420cc21f

View file

@ -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