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:
Dudemanguy 2023-11-08 10:02:49 -06:00
parent 7d86807a5f
commit 5c2051b1ad
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}