Commit 581c7903 authored by Laurent Aimar's avatar Laurent Aimar

* http.c: force nsv when using unsv:// and mime is misc/ultravox.

parent 25c03394
......@@ -387,7 +387,7 @@ static int Open( vlc_object_t *p_this )
if( p_sys->psz_mime && strcasecmp( p_sys->psz_mime, "application/ogg" ) )
{
if( !strcasecmp( p_sys->psz_mime, "video/nsv" ) ||
!strcasecmp( p_sys->psz_mime, "video/nsa") )
!strcasecmp( p_sys->psz_mime, "video/nsa" ) )
p_access->psz_demux = strdup( "nsv" );
else if( !strcasecmp( p_sys->psz_mime, "audio/aac" ) ||
!strcasecmp( p_sys->psz_mime, "audio/aacp" ) )
......@@ -411,6 +411,13 @@ static int Open( vlc_object_t *p_this )
}
/* else probably Ogg Vorbis */
}
else if( !strcasecmp( p_access->psz_access, "unsv" ) &&
p_sys->psz_mime &&
!strcasecmp( p_sys->psz_mime, "misc/ultravox" ) )
{
/* Grrrr! detect ultravox server and force NSV demuxer */
p_access->psz_demux = strdup( "nsv" );
}
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