[vlc-commits] audiobargraph_a: name variable

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


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Wed Apr 16 14:33:38 2014 +0200| [ec3ee9689193b51a2ff9a60dff860927cebbd29e] | committer: Rafaël Carré

audiobargraph_a: name variable

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

 modules/audio_filter/audiobargraph_a.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/audio_filter/audiobargraph_a.c b/modules/audio_filter/audiobargraph_a.c
index 239b9c2..e7f4795 100644
--- a/modules/audio_filter/audiobargraph_a.c
+++ b/modules/audio_filter/audiobargraph_a.c
@@ -213,15 +213,15 @@ static block_t *DoWork( filter_t *p_filter, block_t *p_in_buf )
         /* 6 - send the message with the values for the BarGraph */
         p_sys->counter = 0;
         char message[256];
-        size_t j = 0;
+        size_t len = 0;
 
         for (int i = 0; i < nbChannels; i++) {
-            if (j >= sizeof(message))
+            if (len >= sizeof(message))
                 break;
-            j += snprintf(message + j, sizeof (message),"%f:", i_value[i]);
+            len += snprintf(message + len, sizeof (message),"%f:", i_value[i]);
         }
 
-        message[--j] = '\0';
+        message[len-1] = '\0';
         msg_Dbg(p_filter, "values: %s", message);
 
         var_SetString(p_filter->p_libvlc, "audiobargraph_v-i_values",



More information about the vlc-commits mailing list