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:
parent
c9558e560e
commit
1a38741dce
@ -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(¶m, ","))
|
||||
if (!bstr_eatstart0(¶m, ",") && !bstr_eatstart0(¶m, ":"))
|
||||
break;
|
||||
}
|
||||
if (dst)
|
||||
|
Loading…
Reference in New Issue
Block a user