diff options
author | wm4 <wm4@nowhere> | 2013-03-25 20:49:11 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-03-26 01:29:38 +0100 |
commit | 05e918be02a269627bf440d29a153783df93f172 (patch) | |
tree | ac87c7e54c9733ef073352bd13123a1b99911117 /core | |
parent | 1d530f0e310f6569f6ca4a4af98e3919bc832479 (diff) | |
download | mpv-05e918be02a269627bf440d29a153783df93f172.tar.bz2 mpv-05e918be02a269627bf440d29a153783df93f172.tar.xz |
input: make input command deprecation warnings visible
Some time ago, all old special-cased commands (like "volume 1" to change
volume by one) have been removed. These commands are still emulated
using simple text replacement. This emulation is done to not break
everyone's input.conf, especially because the input.conf provided by
standard mplayer* still uses the old commands.
Every use of a deprecated command prints a replacement warning, which
was visible only with -v. Make these warnings visible by default.
There's actually not much reason to do this, but since commands like
"volume 5 1" don't work anymore, it's better to be verbose about this.
Also simplify the replacement for "vo_fullscreen".
Diffstat (limited to 'core')
-rw-r--r-- | core/input/input.c | 4 | ||||
-rw-r--r-- | core/m_property.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/core/input/input.c b/core/input/input.c index d96ac1908d..142740706a 100644 --- a/core/input/input.c +++ b/core/input/input.c @@ -221,7 +221,7 @@ static const struct legacy_cmd legacy_cmds[] = { {"audio_delay", "add audio-delay"}, {"switch_audio", "cycle audio"}, {"balance", "add balance"}, - {"vo_fullscreen", "no-osd cycle fullscreen"}, + {"vo_fullscreen", "cycle fullscreen"}, {"panscan", "add panscan"}, {"vo_ontop", "cycle ontop"}, {"vo_border", "cycle border"}, @@ -821,7 +821,7 @@ mp_cmd_t *mp_input_parse_cmd(bstr str, const char *loc) if (bstrcasecmp(bstr_splice(str, 0, old_len), (bstr) {(char *)entry->old, old_len}) == 0) { - mp_tmsg(MSGT_INPUT, MSGL_V, "Warning: command '%s' is " + mp_tmsg(MSGT_INPUT, MSGL_WARN, "Warning: command '%s' is " "deprecated, replaced with '%s' at %s.\n", entry->old, entry->new, loc); bstr s = bstr_cut(str, old_len); diff --git a/core/m_property.c b/core/m_property.c index f7e8d5649f..904148e6ee 100644 --- a/core/m_property.c +++ b/core/m_property.c @@ -75,7 +75,7 @@ static bool translate_legacy_property(const char *name, char *buffer, } if (strcmp(old_name, buffer) != 0) { - mp_msg(MSGT_CPLAYER, MSGL_V, "Warning: property '%s' is deprecated, " + mp_msg(MSGT_CPLAYER, MSGL_WARN, "Warning: property '%s' is deprecated, " "replaced with '%s'. Fix your input.conf!\n", old_name, buffer); } |