Make icecast server detection more robust.
authorLaurent Aimar <fenrir@videolan.org>
Wed, 19 Nov 2008 19:22:01 +0000 (20:22 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Wed, 19 Nov 2008 19:22:01 +0000 (20:22 +0100)
modules/access/http.c

index b50dc5a..4d78ac0 100644 (file)
@@ -1410,6 +1410,8 @@ static int Request( access_t *p_access, int64_t i_tell )
             p_sys->i_icy_meta = atoi( p );
             if( p_sys->i_icy_meta < 0 )
                 p_sys->i_icy_meta = 0;
+            if( p_sys->i_icy_meta > 0 )
+                p_sys->b_icecast = true;
 
             msg_Warn( p_access, "ICY metaint=%d", p_sys->i_icy_meta );
         }