summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-09-26 23:56:57 +0200
committerwm4 <wm4@nowhere>2012-10-12 10:10:32 +0200
commit503b124659cd47d7262b5b82e8876111e1a864f7 (patch)
tree0ced8ee5e948f60e5eb63320e1303eb096f7a228
parentea90bdbfa280e54fc4efe6a01a1bf2b3c4715862 (diff)
downloadmpv-503b124659cd47d7262b5b82e8876111e1a864f7.tar.bz2
mpv-503b124659cd47d7262b5b82e8876111e1a864f7.tar.xz
commands: disable deprecation warnings
This disables warning messages when the legacy input command bridge is used. For now, user input.confs should just keep working as if nothing has changed. The deprecation warnings will be enabled again at a later point, and the legacy bridge will be eventually removed.
-rw-r--r--command.c2
-rw-r--r--input/input.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/command.c b/command.c
index d746c50db6..9f854edec2 100644
--- a/command.c
+++ b/command.c
@@ -1523,7 +1523,7 @@ static char *translate_legacy_property(void *talloc_ctx, const char *name)
}
}
if (new_name) {
- mp_msg(MSGT_CPLAYER, MSGL_ERR, "Warning: property '%s' is deprecated, "
+ mp_msg(MSGT_CPLAYER, MSGL_V, "Warning: property '%s' is deprecated, "
"replaced with '%s'. Fix your input.conf!\n", name, new_name);
}
return new_name ? new_name : (char *)name;
diff --git a/input/input.c b/input/input.c
index 17fa9d2215..97da066000 100644
--- a/input/input.c
+++ b/input/input.c
@@ -843,7 +843,7 @@ mp_cmd_t *mp_input_parse_cmd(bstr str)
if (bstrcasecmp(bstr_splice(str, 0, old_len),
(bstr) {(char *)entry->old, old_len}) == 0)
{
- mp_tmsg(MSGT_INPUT, MSGL_WARN, "Warning: command '%s' is "
+ mp_tmsg(MSGT_INPUT, MSGL_V, "Warning: command '%s' is "
"deprecated, replaced with '%s'. Fix your input.conf!\n",
entry->old, entry->new);
bstr s = bstr_cut(str, old_len);