summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-12-19 01:17:01 +0100
committerwm4 <wm4@nowhere>2019-12-19 01:17:01 +0100
commitf719b638402ca6b26759f23785f2dd46d31ee085 (patch)
tree595268474b6ed858520d75ed21653bce566a4cc3
parent7142214243bd052bc9108247cc036b77f51f7669 (diff)
downloadmpv-f719b638402ca6b26759f23785f2dd46d31ee085.tar.bz2
mpv-f719b638402ca6b26759f23785f2dd46d31ee085.tar.xz
options: fix incorrect deprecation message
Passing multiple items to a key/value option is OK, only for -add suffixed options it's deprecated.
-rw-r--r--options/m_option.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/options/m_option.c b/options/m_option.c
index 3f6fae8e1a..46ebb4dba8 100644
--- a/options/m_option.c
+++ b/options/m_option.c
@@ -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) {