mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-23 03:09:56 +08:00
options: make "choice" option type parsing ignore case
This commit is contained in:
+1
-1
@@ -286,7 +286,7 @@ static int parse_choice(const struct m_option *opt, struct bstr name,
|
||||
|
||||
struct m_opt_choice_alternatives *alt;
|
||||
for (alt = opt->priv; alt->name; alt++)
|
||||
if (!bstrcmp0(param, alt->name))
|
||||
if (!bstrcasecmp0(param, alt->name))
|
||||
break;
|
||||
if (!alt->name) {
|
||||
mp_msg(MSGT_CFGPARSER, MSGL_ERR,
|
||||
|
||||
Reference in New Issue
Block a user