aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Uoti Urpala <uau@mplayer2.org>2011-09-11 16:35:44 +0300
committerGravatar Uoti Urpala <uau@mplayer2.org>2011-09-11 16:35:44 +0300
commitef81031350f0a87bf13bdeedd7a8fbfe88482aee (patch)
tree007a43065cee5d6a31768930e2140244d1345637
parent159102e0cb2d403ad81b781d9b9090b90be3d673 (diff)
options: make "choice" option type parsing ignore case
-rw-r--r--m_option.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/m_option.c b/m_option.c
index 19a710bdd3..d5113bb33a 100644
--- a/m_option.c
+++ b/m_option.c
@@ -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,