]> git.sesse.net Git - vlc/commitdiff
* live365.com servers behave quite like icecast servers. they are now supported and...
authorDerk-Jan Hartman <hartman@videolan.org>
Fri, 29 Oct 2004 16:13:10 +0000 (16:13 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Fri, 29 Oct 2004 16:13:10 +0000 (16:13 +0000)
modules/access/http.c

index 902d1dcc8a87085da3a2c5e45ca92b8c288febf3..0ac66df5cdab133c4f2d3d5249806c028a218f40 100644 (file)
@@ -805,8 +805,15 @@ static int Connect( access_t *p_access, int64_t i_tell )
         else if( !strcasecmp( psz, "Server" ) )
         {
             msg_Dbg( p_access, "Server: %s", p );
-            if( !strncasecmp( p, "Icecast", 7 ) )
+            if( !strncasecmp( p, "Icecast", 7 ) ||
+                !strncasecmp( p, "Nanocaster", 10 ) )
             {
+                /* Remember if this is Icecast 
+                 * we need to force mp3 in some cases without breaking autodetection */
+
+                /* Let live365 streams (nanocaster) piggyback on the icecast routine. 
+                 * They look very similar */
+
                 p_sys->b_reconnect = VLC_TRUE;
                 p_sys->b_pace_control = VLC_FALSE;
                 p_sys->b_icecast = VLC_TRUE;
@@ -820,6 +827,12 @@ static int Connect( access_t *p_access, int64_t i_tell )
                 p_sys->b_chunked = VLC_TRUE;
             }
         }
+        else if( !strncasecmp( psz, "icy-", 4 ) ||
+                 !strncasecmp( psz, "ice-", 4 ) ||
+                 !strncasecmp( psz, "x-audiocast", 11 ) )
+        {
+            msg_Dbg( p_access, "Meta-Info: %s: %s", psz, p );
+        }
 
         free( psz );
     }