diff options
author | wm4 <wm4@nowhere> | 2013-02-16 21:17:59 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-02-16 21:41:24 +0100 |
commit | 6d7e044eadabeac30c5701f2da516bd8394692ca (patch) | |
tree | adfe71084928593530094b3b26570cffec8af275 /core/command.c | |
parent | f897138c2d4647cf2a7bbd0c58dc08c1f400fd48 (diff) | |
download | mpv-6d7e044eadabeac30c5701f2da516bd8394692ca.tar.bz2 mpv-6d7e044eadabeac30c5701f2da516bd8394692ca.tar.xz |
osd: add --no-osd-bar option to disable the OSD bar
In addition to disabling the OSD bar physically, also add some fallbacks
to OSD text in places the OSD bar would have been used.
Diffstat (limited to 'core/command.c')
-rw-r--r-- | core/command.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/command.c b/core/command.c index 7b9f374e0d..ba005f80ff 100644 --- a/core/command.c +++ b/core/command.c @@ -1585,7 +1585,7 @@ static void show_property_osd(MPContext *mpctx, const char *pname, set_osd_bar(mpctx, osd_progbar, osd_name, prop.min, prop.max, f); } - if (osd_mode == MP_ON_OSD_AUTO) + if (osd_mode == MP_ON_OSD_AUTO && opts->osd_bar_visible) return; } @@ -1742,7 +1742,7 @@ void run_command(MPContext *mpctx, mp_cmd_t *cmd) } if (bar_osd) mpctx->add_osd_seek_info |= OSD_SEEK_INFO_BAR; - if (msg_osd && !auto_osd) + if (msg_osd && !(auto_osd && opts->osd_bar_visible)) mpctx->add_osd_seek_info |= OSD_SEEK_INFO_TEXT; break; } |