mirror of https://github.com/mpv-player/mpv
player/command: make show-progress work regardless of osd prefix
Having the show-progress command obey no-osd is nonsensical and unintuitive. The show-text command already ignores no-osd, so there's precedence for this. Fixes #5662.
This commit is contained in:
parent
7d86807a5f
commit
5c2051b1ad
|
@ -5639,6 +5639,10 @@ static void cmd_show_progress(void *p)
|
|||
mpctx->add_osd_seek_info |=
|
||||
(cmd->msg_osd ? OSD_SEEK_INFO_TEXT : 0) |
|
||||
(cmd->bar_osd ? OSD_SEEK_INFO_BAR : 0);
|
||||
|
||||
// If we got neither (i.e. no-osd) force both like osd-auto.
|
||||
if (!mpctx->add_osd_seek_info)
|
||||
mpctx->add_osd_seek_info |= OSD_SEEK_INFO_TEXT | OSD_SEEK_INFO_BAR;
|
||||
mpctx->osd_force_update = true;
|
||||
mp_wakeup_core(mpctx);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue