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.
This commit is contained in:
Sebastian Dröge 2017-03-27 17:52:36 +03:00 committed by Edward Hervey
parent 4efa3185bb
commit 133d1e86bd

View file

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