diff options
author | wm4 <wm4@nowhere> | 2019-12-19 01:17:01 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-12-19 01:17:01 +0100 |
commit | f719b638402ca6b26759f23785f2dd46d31ee085 (patch) | |
tree | 595268474b6ed858520d75ed21653bce566a4cc3 /options | |
parent | 7142214243bd052bc9108247cc036b77f51f7669 (diff) | |
download | mpv-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.
Diffstat (limited to 'options')
-rw-r--r-- | options/m_option.c | 6 |
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(¶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) { |