summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-06-20 16:36:22 +0200
committerwm4 <wm4@nowhere>2015-06-20 16:36:22 +0200
commit4e1159c3f2a3f9fec971c5f4d9cc210b8566e0a3 (patch)
tree8186234af236d4fd8212bf531f1e611e17af927d /demux
parentda9e0988a60fb7ead9f2c8fd8e0fcb4db00aabe2 (diff)
downloadmpv-4e1159c3f2a3f9fec971c5f4d9cc210b8566e0a3.tar.bz2
mpv-4e1159c3f2a3f9fec971c5f4d9cc210b8566e0a3.tar.xz
demux_playlist: make mime type comparison case-insensitive
That's how mime types are. (This makes redirection with a specific HLS URL work, because some idiot thought it'd be a great idea to spell the mime type as "application/x-mpegURL".)
Diffstat (limited to 'demux')
-rw-r--r--demux/demux_playlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demux/demux_playlist.c b/demux/demux_playlist.c
index 0479694b34..4f48a99b1a 100644
--- a/demux/demux_playlist.c
+++ b/demux/demux_playlist.c
@@ -35,7 +35,7 @@ static bool check_mimetype(struct stream *s, const char *const *list)
{
if (s->mime_type) {
for (int n = 0; list && list[n]; n++) {
- if (strcmp(s->mime_type, list[n]) == 0)
+ if (strcasecmp(s->mime_type, list[n]) == 0)
return true;
}
}