summaryrefslogtreecommitdiffstats
path: root/TOOLS/old-configure
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-06-09 18:21:07 +0200
committerwm4 <wm4@nowhere>2015-06-09 18:26:14 +0200
commit211088943c494adf4313c0b4bca8d99eca81436a (patch)
tree8837c33bd90acb7fa9e5de678544de2ed9c50aef /TOOLS/old-configure
parenta2b1c6d3f69a97369d582494fbc5c51db62d1613 (diff)
downloadmpv-211088943c494adf4313c0b4bca8d99eca81436a.tar.bz2
mpv-211088943c494adf4313c0b4bca8d99eca81436a.tar.xz
audio/out/pull: avoid dropping some audio when draining
If the audio API takes a while for starting the audio callback, the current heuristic can be off. In particular, with very short files, it can happen that the audio callback is not called before playback is stopped, so no audio is output at all. Change draining so that it essentially waits for the ringbuffer to empty. The assumption is that once the audio API has read the data via the callback, it will always output it, even if the audio API is stopped right after the callback has returned.
Diffstat (limited to 'TOOLS/old-configure')
0 files changed, 0 insertions, 0 deletions