1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-26 09:02:38 +00:00

options: fix incorrect deprecation message

Passing multiple items to a key/value option is OK, only for -add
suffixed options it's deprecated.
This commit is contained in:
wm4 2019-12-19 01:17:01 +01:00
parent 7142214243
commit f719b63840

View File

@ -1721,8 +1721,10 @@ static int parse_keyvalue_list(struct mp_log *log, const m_option_t *opt,
if (!bstr_eatstart0(&param, ",") && !bstr_eatstart0(&param, ":"))
break;
mp_warn(log, "Passing more than 1 argument to %.*s is deprecated!\n",
BSTR_P(name));
if (append) {
mp_warn(log, "Passing more than 1 argument to %.*s is deprecated!\n",
BSTR_P(name));
}
}
if (param.len) {