summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/player/command.c b/player/command.c
index d49b844caf..5983059448 100644
--- a/player/command.c
+++ b/player/command.c
@@ -5624,6 +5624,13 @@ void mp_option_change_callback(void *ctx, struct m_config_option *co, int flags)
mpctx->ipc_ctx = mp_init_ipc(mpctx->clients, mpctx->global);
}
}
+
+ if ((flags & UPDATE_AUDIO) && mpctx->ao_chain) {
+ // Force full mid-stream reinit.
+ reinit_audio_filters(mpctx);
+ uninit_audio_out(mpctx);
+ mp_wakeup_core(mpctx);
+ }
}
void mp_notify_property(struct MPContext *mpctx, const char *property)