From f719b638402ca6b26759f23785f2dd46d31ee085 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 19 Dec 2019 01:17:01 +0100 Subject: options: fix incorrect deprecation message Passing multiple items to a key/value option is OK, only for -add suffixed options it's deprecated. --- options/m_option.c | 6 ++++-- 1 file 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) { -- cgit v1.2.3