[vlc-commits] audiobargraph_a: unused variable

Rafaël Carré git at videolan.org
Wed Apr 16 14:46:39 CEST 2014


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Wed Apr 16 13:55:02 2014 +0200| [eaba76fb895835075277fde971e3ec5552213102] | committer: Rafaël Carré

audiobargraph_a: unused variable

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

 modules/audio_filter/audiobargraph_a.c |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/modules/audio_filter/audiobargraph_a.c b/modules/audio_filter/audiobargraph_a.c
index 3264d7c..0b019c2 100644
--- a/modules/audio_filter/audiobargraph_a.c
+++ b/modules/audio_filter/audiobargraph_a.c
@@ -101,7 +101,6 @@ struct filter_sys_t
     float           alarm_threshold;
     int             repetition_time;
     int             counter;
-    int             nbChannels;
     ValueDate_t*    first;
     ValueDate_t*    last;
     int             started;
@@ -125,7 +124,6 @@ static int Open( vlc_object_t *p_this )
     p_sys->alarm_threshold = var_CreateGetFloat( p_filter, CFG_PREFIX "alarm_threshold" );
     p_sys->repetition_time = var_CreateGetInteger( p_filter, CFG_PREFIX "repetition_time" );
     p_sys->counter = 0;
-    p_sys->nbChannels = 0;
     p_sys->first = NULL;
     p_sys->last = NULL;
     p_sys->started = 0;
@@ -152,13 +150,11 @@ static block_t *DoWork( filter_t *p_filter, block_t *p_in_buf )
     float i_value[AOUT_CHAN_MAX];
     float ch;
     float max = 0.0;
-    int nbChannels = 0;
     ValueDate_t* current = NULL;
     float sum;
     int count = 0;
 
-    nbChannels = aout_FormatNbChannels( &p_filter->fmt_in.audio );
-    p_sys->nbChannels = nbChannels;
+    int nbChannels = aout_FormatNbChannels( &p_filter->fmt_in.audio );
 
     for (i=0; i<nbChannels; i++) {
         i_value[i] = 0.;



More information about the vlc-commits mailing list