summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-11-24 20:50:09 +0100
committerwm4 <wm4@nowhere>2016-11-24 20:52:15 +0100
commitc03a67c37c149134a25d400a62b7706386136379 (patch)
tree782ff6f79e6f343b29e6d8eaa9005df93ae87af3 /video
parent48a7c4be3a8ea97ddc2150c20b5cf4db4f1b8e85 (diff)
downloadmpv-c03a67c37c149134a25d400a62b7706386136379.tar.bz2
mpv-c03a67c37c149134a25d400a62b7706386136379.tar.xz
audio/out/push: play silence on --audio-stream-silence
Until now, this was only implemented for ao_alsa and AOs not using push.c. ao_alsa.c relied on enabling funny underrun semantics for avoiding resets on lower levels, while other AOs using push.c didn't do anything. Change this and at least make push.c copy silent data to the AO. This still isn't perfect as keeping track of how much silence was played when seems complex, so we don't do it. The consequence is that frame-stepping will essentially randomize the A/V offset (it'll recover immediately when unpausing, but still ugly). Also, in order to empty the currently buffered audio on seeks etc., we still call ao_driver->reset and so on, so the AO driver will still need to handle this specially. The intent is to make behavior with ALSA less weird (for one we can remove the code in ao_alsa.c that tries to trigger an initial underflow). Also might help with #3754.
Diffstat (limited to 'video')
0 files changed, 0 insertions, 0 deletions