1
mirror of https://github.com/mpv-player/mpv synced 2024-11-14 22:48:35 +01:00

player: fix missed pause state update during reset in some cases

When playing a new file, if paused_for_cache was true before being reset
the AO would never be unpaused because that state was thrown away, leaving it stuck.
Fix this by updating the pause state before resetting that variable. Note that this
does not make the second update_internal_pause_state() call redundant.
This fixes the same bug fb5d976cb0 was supposed to.
This commit is contained in:
sfan5 2021-07-18 12:11:29 +02:00
parent d2a56227df
commit 3e28c8e983

View File

@ -239,6 +239,10 @@ void reset_playback_state(struct MPContext *mpctx)
sub_set_play_dir(t->d_sub, mpctx->play_dir);
}
// May need unpause first
if (mpctx->paused_for_cache)
update_internal_pause_state(mpctx);
mpctx->hrseek_active = false;
mpctx->hrseek_lastframe = false;
mpctx->hrseek_backstep = false;