[vlc-devel] commit: Waveout: Small scope improvement (Jean-Baptiste Kempf )

git version control git at videolan.org
Tue Dec 29 16:07:24 CET 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Dec 29 14:32:24 2009 +0100| [b27353620a82bcf7cb9bdddafae9781f0e419ecc] | committer: Jean-Baptiste Kempf 

Waveout: Small scope improvement

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b27353620a82bcf7cb9bdddafae9781f0e419ecc
---

 modules/audio_output/waveout.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/modules/audio_output/waveout.c b/modules/audio_output/waveout.c
index 71398c3..28eb0f6 100644
--- a/modules/audio_output/waveout.c
+++ b/modules/audio_output/waveout.c
@@ -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;




More information about the vlc-devel mailing list