0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

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.
This commit is contained in:
wm4 2012-09-26 23:56:57 +02:00
parent ea90bdbfa2
commit 503b124659
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);