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.
diff --git a/ext/dash/gstdashdemux.c b/ext/dash/gstdashdemux.c
index 2c581e9..5009123 100644
--- a/ext/dash/gstdashdemux.c
+++ b/ext/dash/gstdashdemux.c
@@ -1787,7 +1787,7 @@
} 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;
}