player/command: reselect track after UPDATE_SUB_HARD

The lingering cache needs to be cleared so the packets don't stay
forever on the screen past their welcome. Do this by simply refreshing
the stream. Fixes #13148.
This commit is contained in:
Dudemanguy 2024-01-19 22:46:49 -06:00
parent a05c363b7f
commit 700f72f8e4
1 changed files with 2 additions and 0 deletions

View File

@ -7006,6 +7006,8 @@ void mp_option_change_callback(void *ctx, struct m_config_option *co, int flags,
(void *)(uintptr_t)flags);
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);
}
}
osd_changed(mpctx->osd);