diff options
author | wm4 <wm4@nowhere> | 2020-09-12 00:09:20 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-09-12 00:13:24 +0200 |
commit | eed8b6d47bf9c2437852cd99f53db18b3dff9ad7 (patch) | |
tree | e080057da3da8ca9861db12891f549b23dceb99a /input | |
parent | 98f9d50b306b6bd11a256d97a33a79acd7d160ec (diff) | |
download | mpv-eed8b6d47bf9c2437852cd99f53db18b3dff9ad7.tar.bz2 mpv-eed8b6d47bf9c2437852cd99f53db18b3dff9ad7.tar.xz |
player: fix inconsistent AO pause state in certain situations
Pause can be changed during a file change, such as with for example
--reset-on-next-file=pause, or in hooks, or by being quick, and in this
case the AO's pause state was not updated correctly. mpctx->ao_chain is
only set if playback is fully initialized, while the AO itself in
mpctx->ao can be reused across files.
Fix this by always running set_pause_state() if the pause option is
changed. Could cause new bugs since running this used to be explicitly
avoided outside of the loaded state. The handling of time_frame is
potentially worrisome.
Regression due to recent audio refactor; before that, the AO didn't have
a separate/persistent pause state.
Fixes: #8079
Diffstat (limited to 'input')
0 files changed, 0 insertions, 0 deletions