From 6d7e044eadabeac30c5701f2da516bd8394692ca Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 16 Feb 2013 21:17:59 +0100 Subject: 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. --- core/command.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/command.c') 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; } -- cgit v1.2.3