summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2011-04-22 07:07:54 +0300
committerUoti Urpala <uau@mplayer2.org>2011-04-22 09:34:02 +0300
commitc2067cabafa272dc96d51a3969c024d09fb7a78d (patch)
tree441efe87ee1d9f0ef7fb0c08eb17cd511add2476 /input
parentd33877acb6db9beb050083ee53a4cfaf7c6ffbab (diff)
downloadmpv-c2067cabafa272dc96d51a3969c024d09fb7a78d.tar.bz2
mpv-c2067cabafa272dc96d51a3969c024d09fb7a78d.tar.xz
audio: fill small AO buffers more often in audio-only case
Commit cbeed30ae8 ("core: wake up a bit less often for audio-only files") increased the sleep time between audio buffer fills. This turned out to cause problems on some machines where available audio buffer sizes are extremely limited (example cases included 85 ms for stereo and less for multichannel audio). Change the code to check the amount of buffered audio and shorten sleep times accordingly if needed. Such short buffers violate some assumptions made by video timing code, so they may still cause visible problems in some cases. At least on some machines using ALSA the problem seems to be caused by bad configuration defaults (small buffer memory limit which can be increased).
Diffstat (limited to 'input')
0 files changed, 0 insertions, 0 deletions