Commit 96053dfb authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Recognize XSPF MIME type when there is a charset parameter.

Thanks to “DS” for pointing this out.
parent 83cc55c7
......@@ -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" );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment