]> git.sesse.net Git - vlc/commitdiff
visual/effects.c: compile fix
authorEric Petit <titer@videolan.org>
Tue, 20 Sep 2005 22:48:30 +0000 (22:48 +0000)
committerEric Petit <titer@videolan.org>
Tue, 20 Sep 2005 22:48:30 +0000 (22:48 +0000)
modules/visualization/visual/effects.c

index 8e1a6b5d616a0e7e945bd22af362a211da3f2457..d86011df5ed963b6d43dfb3b96600fe8f767262a 100644 (file)
@@ -378,14 +378,14 @@ int spectrometer_Run(visual_effect_t * p_effect, aout_instance_t *p_aout,
     int16_t p_dest[FFT_BUFFER_SIZE];      /* Adapted FFT result */
     int16_t p_buffer1[FFT_BUFFER_SIZE];   /* Buffer on which we perform
                                              the FFT (first channel) */
-    i_line = 0;
-
     float *p_buffl =                     /* Original buffer */
             (float*)p_buffer->p_buffer;
 
     int16_t  *p_buffs;                    /* int16_t converted buffer */
     int16_t  *p_s16_buff = NULL;                /* int16_t converted buffer */
 
+    i_line = 0;
+
     p_s16_buff = (int16_t*)malloc(
               p_buffer->i_nb_samples * p_effect->i_nb_chans * sizeof(int16_t));