diff options
author | wm4 <wm4@nowhere> | 2014-08-27 23:12:24 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-08-27 23:24:55 +0200 |
commit | f8a1bd1253fdc6076415e67e006ab99a2cae568e (patch) | |
tree | 821b96dea8238bbd8c0e4d8a541642980f27988d /audio/audio.c | |
parent | cb642e7c846be2540ec5c88c854682fc26d787f8 (diff) | |
download | mpv-f8a1bd1253fdc6076415e67e006ab99a2cae568e.tar.bz2 mpv-f8a1bd1253fdc6076415e67e006ab99a2cae568e.tar.xz |
player: dynamically change cache wait times
Remove the hardcoded wait time of 2 seconds. Instead, adjust the wait
time each time we unpause: if downloading the data took longer than its
estimated playback time, increase the amount of data we wait for. If
it's shorter, decrease it.
The +/- is supposed to avoid oscillating between two values if the
elapsed time and the wait time are similar. It's not sure if this
actually helps with anything, but it can't harm.
Diffstat (limited to 'audio/audio.c')
0 files changed, 0 insertions, 0 deletions