summaryrefslogtreecommitdiffstats
path: root/subopt-helper.c
diff options
context:
space:
mode:
authorwm4 <wm4@mplayer2.org>2012-03-12 01:14:47 +0100
committerwm4 <wm4@mplayer2.org>2012-03-17 21:06:30 +0100
commit2f9b14916fc2b4f3e505f0512c16d3a6f0fa30fe (patch)
tree78bbe7fbb06cfa876aed606d97efa3a8df68ffc0 /subopt-helper.c
parentea1cc7f3e2c2a052bfd79039b5264bfbd0ebdca7 (diff)
downloadmpv-2f9b14916fc2b4f3e505f0512c16d3a6f0fa30fe.tar.bz2
mpv-2f9b14916fc2b4f3e505f0512c16d3a6f0fa30fe.tar.xz
ao_dsound: don't repeat parts of the audio buffer when playback ends
When layback of a file ends, the audio output doesn't receive new audio data, but the rest of the data must be played properly. ao_dsound.c doesn't handle this properly: DirectSound will continue to play the ringbuffer, even if mplayer doesn't write any data. There's no explicit way to prevent such a buffer underrun. Try to detect it and stop playback.
Diffstat (limited to 'subopt-helper.c')
0 files changed, 0 insertions, 0 deletions