]> git.sesse.net Git - vlc/commitdiff
Waveout: Small scope improvement
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 29 Dec 2009 13:32:24 +0000 (14:32 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 29 Dec 2009 15:07:09 +0000 (16:07 +0100)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/audio_output/waveout.c

index 71398c340e79d536f999faf5a458de0a081586a7..28eb0f6ec6ebc3a411f227f7d1a2b1874faf8917 100644 (file)
@@ -155,7 +155,6 @@ static int Open( vlc_object_t *p_this )
 {
     aout_instance_t *p_aout = (aout_instance_t *)p_this;
     vlc_value_t val;
-    int i;
 
     /* Allocate structure */
     p_aout->output.p_sys = malloc( sizeof( aout_sys_t ) );
@@ -353,7 +352,7 @@ static int Open( vlc_object_t *p_this )
 
     /* We need to kick off the playback in order to have the callback properly
      * working */
-    for( i = 0; i < FRAMES_NUM; i++ )
+    for( int i = 0; i < FRAMES_NUM; i++ )
     {
         p_aout->output.p_sys->waveheader[i].dwFlags = WHDR_DONE;
         p_aout->output.p_sys->waveheader[i].dwUser = 0;