Commit c79f9d40 authored by Gildas Bazin's avatar Gildas Bazin

* modules/access/http.c: set ACCESS_CAN_CONTROL_PACE to false when dealing with Icecast servers.

parent 24621547
...@@ -305,9 +305,8 @@ static int Open( vlc_object_t *p_this ) ...@@ -305,9 +305,8 @@ static int Open( vlc_object_t *p_this )
{ {
if( p_sys->psz_mime && !strcasecmp( p_sys->psz_mime, "video/nsv" ) ) if( p_sys->psz_mime && !strcasecmp( p_sys->psz_mime, "video/nsv" ) )
p_access->psz_demux = strdup( "nsv" ); p_access->psz_demux = strdup( "nsv" );
else if( p_sys->psz_mime && ( !strcasecmp( p_sys->psz_mime, "audio/aac" ) || else if( p_sys->psz_mime && !strcasecmp( p_sys->psz_mime, "audio/aacp" ) )
!strcasecmp( p_sys->psz_mime, "audio/aacp" ) ) ) p_access->psz_demux = strdup( "aac" );
p_access->psz_demux = strdup( "m4a" );
else else
p_access->psz_demux = strdup( "mp3" ); p_access->psz_demux = strdup( "mp3" );
...@@ -782,6 +781,7 @@ static int Connect( access_t *p_access, int64_t i_tell ) ...@@ -782,6 +781,7 @@ static int Connect( access_t *p_access, int64_t i_tell )
!strncasecmp( p, "Icecast", 7 ) ) !strncasecmp( p, "Icecast", 7 ) )
{ {
p_sys->b_reconnect = VLC_TRUE; p_sys->b_reconnect = VLC_TRUE;
p_sys->b_pace_control = VLC_FALSE;
msg_Dbg( p_access, "Server: %s", p ); msg_Dbg( p_access, "Server: %s", p );
} }
else if( !strcasecmp( psz, "Transfer-Encoding" ) ) else if( !strcasecmp( psz, "Transfer-Encoding" ) )
......
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