Skip to content

Commit

Permalink
player/command: don't reselect demux stream on only UPDATE_OSD
Browse files Browse the repository at this point in the history
700f72f should have put this inside the
flag check.
  • Loading branch information
Dudemanguy committed Jan 22, 2024
1 parent 62a0292 commit 7f595aa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions player/command.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7f595aa

Please sign in to comment.