options: make "choice" option type parsing ignore case

This commit is contained in:
Uoti Urpala 2011-09-11 16:35:44 +03:00
parent 159102e0cb
commit ef81031350
1 changed files with 1 additions and 1 deletions

View File

@ -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,