]> git.sesse.net Git - vlc/commitdiff
compile fix, do not declare variables in the middle of a function, this is plain...
authorStephan Assmus <stippi@videolan.org>
Thu, 15 Apr 2004 09:57:14 +0000 (09:57 +0000)
committerStephan Assmus <stippi@videolan.org>
Thu, 15 Apr 2004 09:57:14 +0000 (09:57 +0000)
modules/demux/sgimb.c
src/playlist/playlist.c

index e02a2523ebacf4dbeb7e399eeba308b4413f40f9..2d850abc623a154410afa921e84a220977c09250 100644 (file)
@@ -101,6 +101,8 @@ static int Activate( vlc_object_t * p_this )
 {
     demux_t *p_demux = (demux_t *)p_this;
     demux_sys_t *p_sys;
+    byte_t *p_peek;
+    int i_size;
 
     p_demux->pf_demux = Demux;
     p_demux->pf_control = Control;
@@ -116,8 +118,7 @@ static int Activate( vlc_object_t * p_this )
 
 
     /* Lets check the content to see if this is a sgi mediabase file */
-    byte_t *p_peek;
-    int i_size = stream_Peek( p_demux->s, &p_peek, MAX_LINE );
+    i_size = stream_Peek( p_demux->s, &p_peek, MAX_LINE );
     i_size -= sizeof("sgiNameServerHost=") - 1;
     if ( i_size > 0 ) {
         while ( i_size
index 6968d5f4e120a70c2a5764223c0f12d6800a9892..bf2a5469f807d708962f10e82183d24f04c9d107 100644 (file)
@@ -491,6 +491,7 @@ static void SkipItem( playlist_t *p_playlist, int i_arg )
     int i_oldindex = p_playlist->i_index;
     vlc_bool_t b_random, b_repeat, b_loop;
     vlc_value_t val;
+    int i_count;
 
     /* If the playlist is empty, there is no current item */
     if( p_playlist->i_size == 0 )
@@ -510,7 +511,7 @@ static void SkipItem( playlist_t *p_playlist, int i_arg )
     if( b_random )
     {
         srand( (unsigned int)mdate() );
-        int i_count = 0;
+        i_count = 0;
         while( i_count < p_playlist->i_size )
         {
             p_playlist->i_index =