mirror of
https://github.com/mpv-player/mpv
synced 2025-02-20 06:46:55 +00:00
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".)
This commit is contained in:
parent
da9e0988a6
commit
4e1159c3f2
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user