mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
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:
parent
4efa3185bb
commit
133d1e86bd
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue