demux/playlist: fix mime-type matching
commit5cde0de01244f3195ee24841ce2e085d71fd3a62
authorFilip Roséen <filip@atch.se>
Wed, 22 Mar 2017 03:38:34 +0000 (22 04:38 +0100)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 22 Mar 2017 07:21:34 +0000 (22 09:21 +0200)
tree7e3d3e6fc9be28ae3712e5ee13391040dc183959
parent56f202f9effc70a227a1295f20da6bda9c2d1d27
demux/playlist: fix mime-type matching

The previous implementation would inaccurately truncate the mime-type
check in case of parameters in the content-type string, which in turn
would lead to false-positive matches.

As the usage of CheckContentType is really meant to check the
mime-type of the content-type string, besides fixing the inaccurate
comparision, the function is also renamed to CheckMimeType.

fixes: #18143

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
modules/demux/playlist/asx.c
modules/demux/playlist/m3u.c
modules/demux/playlist/playlist.c
modules/demux/playlist/playlist.h