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
1 changed files with 4 additions and 2 deletions

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, ":")) if (!bstr_eatstart0(&param, ",") && !bstr_eatstart0(&param, ":"))
break; break;
mp_warn(log, "Passing more than 1 argument to %.*s is deprecated!\n", if (append) {
BSTR_P(name)); mp_warn(log, "Passing more than 1 argument to %.*s is deprecated!\n",
BSTR_P(name));
}
} }
if (param.len) { if (param.len) {