diff options
Diffstat (limited to 'player')
-rw-r--r-- | player/command.c | 9 | ||||
-rw-r--r-- | player/playloop.c | 2 |
2 files changed, 3 insertions, 8 deletions
diff --git a/player/command.c b/player/command.c index 723996d9be..572d0874d0 100644 --- a/player/command.c +++ b/player/command.c @@ -6493,13 +6493,8 @@ void mp_option_change_callback(void *ctx, struct m_config_option *co, int flags, } } - if (opt_ptr == &opts->pause) { - if (mpctx->playback_initialized) { - int val = opts->pause; - opts->pause = !val; // temporary hack to force update - set_pause_state(mpctx, val); - } - } + if (opt_ptr == &opts->pause) + set_pause_state(mpctx, opts->pause); if (opt_ptr == &opts->audio_delay) { if (mpctx->ao_chain) { diff --git a/player/playloop.c b/player/playloop.c index d36eed2090..7b99a3b4cd 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -159,7 +159,7 @@ void set_pause_state(struct MPContext *mpctx, bool user_pause) if (internal_paused != mpctx->paused) { mpctx->paused = internal_paused; - if (mpctx->ao && mpctx->ao_chain) + if (mpctx->ao) ao_set_paused(mpctx->ao, internal_paused); if (mpctx->video_out) |