diff options
author | Dudemanguy <random342@airmail.cc> | 2023-11-08 10:02:49 -0600 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-11-09 21:32:35 +0000 |
commit | 5c2051b1adbfdf476df5e57080ea0ea79abee1a7 (patch) | |
tree | 0e4f2a330622bd46043183a79ee4a6ab7395ad27 /player/command.c | |
parent | 7d86807a5f71989e944269fa430f36f2f32b1d65 (diff) | |
download | mpv-5c2051b1adbfdf476df5e57080ea0ea79abee1a7.tar.bz2 mpv-5c2051b1adbfdf476df5e57080ea0ea79abee1a7.tar.xz |
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.
Diffstat (limited to 'player/command.c')
-rw-r--r-- | player/command.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/player/command.c b/player/command.c index 8d6ab07d03..bf4b029b3e 100644 --- a/player/command.c +++ b/player/command.c @@ -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); } |