summaryrefslogtreecommitdiffstats
path: root/player/loadfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/loadfile.c')
-rw-r--r--player/loadfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/loadfile.c b/player/loadfile.c
index ff401cd590..8139c06f3f 100644
--- a/player/loadfile.c
+++ b/player/loadfile.c
@@ -296,7 +296,7 @@ void add_demuxer_tracks(struct MPContext *mpctx, struct demuxer *demuxer)
static int match_lang(char **langs, char *lang)
{
for (int idx = 0; langs && langs[idx]; idx++) {
- if (lang && strcmp(langs[idx], lang) == 0)
+ if (lang && strcasecmp(langs[idx], lang) == 0)
return INT_MAX - idx;
}
return 0;