From: Sebastian Dröge Date: Mon, 6 Mar 2017 12:27:20 +0000 (+0200) Subject: dashdemux: Don't increase current position if we just downloaded the moof in KEYUNIT... X-Git-Tag: 1.19.3~507^2~5253 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=df420cc21f0e71cab8fe8f6ddc0cd9412d8e1b23;p=platform%2Fupstream%2Fgstreamer.git dashdemux: Don't increase current position if we just downloaded the moof in KEYUNIT mode --- diff --git a/ext/dash/gstdashdemux.c b/ext/dash/gstdashdemux.c index 64dddbd..c7f32d7 100644 --- a/ext/dash/gstdashdemux.c +++ b/ext/dash/gstdashdemux.c @@ -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