Commit a02da20e authored by Adrien Maglo's avatar Adrien Maglo Committed by Jean-Baptiste Kempf

lib: fix typos in libvlc_media_player_set_equalizer

This commit repairs the libvlc equalizer API.
Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
(cherry picked from commit f987413453c1a4769f56c91b3f1e3963b35c42e2)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 5b286b4d
......@@ -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 );
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment