command: don't show message on "osd" command by default

Apparently this was not very popular.

CC: @mpv-player/stable
This commit is contained in:
wm4 2014-10-03 03:37:27 +02:00
parent 4332105352
commit 1482a6fece
1 changed files with 2 additions and 3 deletions

View File

@ -3715,11 +3715,10 @@ int run_command(MPContext *mpctx, mp_cmd_t *cmd)
opts->osd_level = (opts->osd_level + 1) % (MAX_OSD_LEVEL + 1);
else
opts->osd_level = MPCLAMP(v, 0, MAX_OSD_LEVEL);
if (opts->osd_level > 0) {
if (opts->osd_level > 0 && (on_osd & MP_ON_OSD_MSG))
set_osd_msg(mpctx, osdl, osd_duration, "OSD level: %d", opts->osd_level);
} else {
if (opts->osd_level == 0)
set_osd_msg(mpctx, 0, 0, "");
}
break;
}