From 4e1159c3f2a3f9fec971c5f4d9cc210b8566e0a3 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 20 Jun 2015 16:36:22 +0200 Subject: 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".) --- demux/demux_playlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'demux') 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; } } -- cgit v1.2.3