From 133d1e86bd83450c13c66ab4f758ee8c37577c72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 27 Mar 2017 17:52:36 +0300 Subject: [PATCH] dashdemux: Download keyframes from the current position if we're far enough ahead Far enough here means more than 500ms or 4 times the average keyframe download time. There is no need to jump ahead by one average keyframe download time in this case. This makes playback smooth if the network is fast enough. --- ext/dash/gstdashdemux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/dash/gstdashdemux.c b/ext/dash/gstdashdemux.c index 2c581e92b1..5009123b29 100644 --- a/ext/dash/gstdashdemux.c +++ b/ext/dash/gstdashdemux.c @@ -1787,7 +1787,7 @@ gst_dash_demux_stream_get_target_time (GstDashDemux * dashdemux, } else { /* Get the next position satisfying the download time */ ret = gst_segment_position_from_running_time (&stream->segment, - GST_FORMAT_TIME, cur_running + dashstream->average_download_time); + GST_FORMAT_TIME, cur_running); } return ret; }