1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-29 10:32:15 +00:00

options: allow ":" as separator in key-value lists

Before this, unquoted occurrences of ":" lead to parsing errors. There's
no reason to reject it, especially since the traditional MPlayer syntax
uses ":" as separator. (Which is also the reason why ":" was rejected
before: the parser shares this code for handling splitting/quoting, and
we merely checked explicitly whether the option was split on ",".)
This commit is contained in:
wm4 2015-02-06 15:42:12 +01:00
parent c9558e560e
commit 1a38741dce

View File

@ -1409,7 +1409,7 @@ static int parse_keyvalue_list(struct mp_log *log, const m_option_t *opt,
MP_TARRAY_APPEND(NULL, lst, num, bstrto0(NULL, val));
}
if (!bstr_eatstart0(&param, ","))
if (!bstr_eatstart0(&param, ",") && !bstr_eatstart0(&param, ":"))
break;
}
if (dst)