Commit 2d5322c3 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* so the ogg vorbis fix broke shoutcast streams :) fixing again.... (tested...

* so the ogg vorbis fix broke shoutcast streams :) fixing again.... (tested with all audio streams i know off)
parent 70a4f2e2
...@@ -368,26 +368,33 @@ static int Open( vlc_object_t *p_this ) ...@@ -368,26 +368,33 @@ static int Open( vlc_object_t *p_this )
goto error; goto error;
} }
if( ( !strcmp( p_sys->psz_protocol, "ICY" ) || p_sys->b_icecast ) && if( !strcmp( p_sys->psz_protocol, "ICY" ) || p_sys->b_icecast )
( strcasecmp( p_sys->psz_mime, "application/ogg" ) ) )
{ {
if( p_sys->psz_mime && ( !strcasecmp( p_sys->psz_mime, "video/nsv" ) || if( p_sys->psz_mime && strcasecmp( p_sys->psz_mime, "application/ogg" ) )
!strcasecmp( p_sys->psz_mime, "video/nsa") ) ) {
p_access->psz_demux = strdup( "nsv" ); if( !strcasecmp( p_sys->psz_mime, "video/nsv" ) ||
else if( p_sys->psz_mime && !strcasecmp( p_sys->psz_mime, "video/nsa") )
( !strcasecmp( p_sys->psz_mime, "audio/aac" ) || p_access->psz_demux = strdup( "nsv" );
!strcasecmp( p_sys->psz_mime, "audio/aacp" ) ) ) else if( !strcasecmp( p_sys->psz_mime, "audio/aac" ) ||
p_access->psz_demux = strdup( "m4a" ); !strcasecmp( p_sys->psz_mime, "audio/aacp" ) )
else if( p_sys->psz_mime && !strcasecmp( p_sys->psz_mime, "audio/mpeg" ) ) p_access->psz_demux = strdup( "m4a" );
p_access->psz_demux = strdup( "mp3" ); else if( !strcasecmp( p_sys->psz_mime, "audio/mpeg" ) )
p_access->psz_demux = strdup( "mp3" );
msg_Info( p_access, "Raw-audio server found, %s demuxer selected",
p_access->psz_demux ); msg_Info( p_access, "Raw-audio server found, %s demuxer selected",
p_access->psz_demux );
#if 0 /* Doesn't work really well because of the pre-buffering in shoutcast
* servers (the buffer content will be sent as fast as possible). */ #if 0 /* Doesn't work really well because of the pre-buffering in shoutcast
p_sys->b_pace_control = VLC_FALSE; * servers (the buffer content will be sent as fast as possible). */
p_sys->b_pace_control = VLC_FALSE;
#endif #endif
}
else if( !p_sys->psz_mime )
{
/* Shoutcast */
p_access->psz_demux = strdup( "mp3" );
}
/* else probably Ogg Vorbis */
} }
if( p_sys->b_reconnect ) msg_Dbg( p_access, "auto re-connect enabled" ); 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