[vlc-commits] lib: fix typos in libvlc_media_player_set_equalizer
Adrien Maglo
git at videolan.org
Thu Jun 19 14:00:04 CEST 2014
vlc/vlc-2.2 | branch: master | Adrien Maglo <magsoft at gmail.com> | Mon Jun 16 16:47:44 2014 +0200| [a02da20e1ec486a975681a7ce0602d86ac2e697d] | committer: Jean-Baptiste Kempf
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>
(cherry picked from commit f987413453c1a4769f56c91b3f1e3963b35c42e2)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=a02da20e1ec486a975681a7ce0602d86ac2e697d
---
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