[vlc-commits] lib: fix typos in libvlc_media_player_set_equalizer

Adrien Maglo git at videolan.org
Wed Jun 18 18:38:02 CEST 2014


vlc | branch: master | Adrien Maglo <magsoft at gmail.com> | Mon Jun 16 16:47:44 2014 +0200| [f987413453c1a4769f56c91b3f1e3963b35c42e2] | committer: Rémi Denis-Courmont

lib: fix typos in libvlc_media_player_set_equalizer

This commit repairs the libvlc equalizer API.

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 lib/media_player.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/media_player.c b/lib/media_player.c
index 4477a6a..5225079 100644
--- a/lib/media_player.c
+++ b/lib/media_player.c
@@ -1497,7 +1497,7 @@ int libvlc_media_player_set_equalizer( libvlc_media_player_t *p_mi, libvlc_equal
     {
         for( unsigned i = 0, c = 0; i < EQZ_BANDS_MAX; i++ )
         {
-            c = snprintf( bands + c, sizeof(bands) - c, " %.07f",
+            c += snprintf( bands + c, sizeof(bands) - c, " %.07f",
                           p_equalizer->f_amp[i] );
             if( unlikely(c >= sizeof(bands)) )
                 return -1;
@@ -1517,7 +1517,7 @@ int libvlc_media_player_set_equalizer( libvlc_media_player_t *p_mi, libvlc_equal
             var_SetString( p_aout, "equalizer-bands", bands );
         }
 
-        var_SetString( p_mi, "audio-filter", p_equalizer ? "equalizer" : "" );
+        var_SetString( p_aout, "audio-filter", p_equalizer ? "equalizer" : "" );
         vlc_object_release( p_aout );
     }
 



More information about the vlc-commits mailing list