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:
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, ":"))
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user