mirror of https://github.com/mpv-player/mpv
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:
parent
7142214243
commit
f719b63840
|
@ -1721,8 +1721,10 @@ static int parse_keyvalue_list(struct mp_log *log, const m_option_t *opt,
|
||||||
if (!bstr_eatstart0(¶m, ",") && !bstr_eatstart0(¶m, ":"))
|
if (!bstr_eatstart0(¶m, ",") && !bstr_eatstart0(¶m, ":"))
|
||||||
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) {
|
||||||
|
|
Loading…
Reference in New Issue