From 7f595aabf45fd60d080ab80ccdc8def26cfbd2ec Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Mon, 22 Jan 2024 12:22:58 -0600 Subject: [PATCH] player/command: don't reselect demux stream on only UPDATE_OSD 700f72f8e424486633b1c8da9313182e63072592 should have put this inside the flag check. --- player/command.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/player/command.c b/player/command.c index 49bd6b72e1ccb..57e3b793dee16 100644 --- a/player/command.c +++ b/player/command.c @@ -7015,10 +7015,11 @@ void mp_option_change_callback(void *ctx, struct m_config_option *co, int flags, if (sub) { int ret = sub_control(sub, SD_CTRL_UPDATE_OPTS, (void *)(uintptr_t)flags); - if (ret == CONTROL_OK && flags & (UPDATE_SUB_FILT | UPDATE_SUB_HARD)) + if (ret == CONTROL_OK && flags & (UPDATE_SUB_FILT | UPDATE_SUB_HARD)) { sub_redecode_cached_packets(sub); - if (track->selected) - reselect_demux_stream(mpctx, track, true); + if (track->selected) + reselect_demux_stream(mpctx, track, true); + } } } osd_changed(mpctx->osd);