diff options
author | wm4 <wm4@nowhere> | 2014-10-03 03:37:27 +0200 |
---|---|---|
committer | Alessandro Ghedini <alessandro@ghedini.me> | 2014-10-11 13:54:00 +0200 |
commit | 72e881b60df442ecc7c2a57b7a176a71985009ed (patch) | |
tree | eb9404401667f64018cebc968df018ebff176c3c /player | |
parent | 45b99d979977e720a6024eb95a1aa83bee228972 (diff) | |
download | mpv-72e881b60df442ecc7c2a57b7a176a71985009ed.tar.bz2 mpv-72e881b60df442ecc7c2a57b7a176a71985009ed.tar.xz |
command: don't show message on "osd" command by default
Apparently this was not very popular.
CC: @mpv-player/stable
Diffstat (limited to 'player')
-rw-r--r-- | player/command.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/player/command.c b/player/command.c index 0399905e23..564ac38a39 100644 --- a/player/command.c +++ b/player/command.c @@ -3695,11 +3695,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; } |