mirror of https://github.com/mpv-player/mpv
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:
parent
a05c363b7f
commit
700f72f8e4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue