From: Rémi Denis-Courmont Date: Sun, 14 May 2006 13:06:09 +0000 (+0000) Subject: Recognize XSPF MIME type when there is a charset parameter. X-Git-Tag: 0.9.0-test0~11256 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=96053dfbebec9c6d309a1f7c2f910d9e3cfbc975;hp=83cc55c7f7c03e7deb1476ee7aac13946970e561;p=vlc Recognize XSPF MIME type when there is a charset parameter. Thanks to “DS” for pointing this out. --- diff --git a/modules/access/http.c b/modules/access/http.c index 71bdcb011a..2905d59c03 100644 --- a/modules/access/http.c +++ b/modules/access/http.c @@ -407,7 +407,8 @@ connect: p_access->psz_demux = strdup( "nsv" ); } else if( p_sys->psz_mime && - !strcasecmp( p_sys->psz_mime, "application/xspf+xml" ) ) + !strncasecmp( p_sys->psz_mime, "application/xspf+xml", 20 ) && + ( memchr( " ;\t", p_sys->psz_mime[20], 4 ) != NULL ) ) p_access->psz_demux = strdup( "xspf-open" ); if( p_sys->b_reconnect ) msg_Dbg( p_access, "auto re-connect enabled" );