[vlc-devel] [PATCH 2/2] lib: do not load an equalizer preset when using libvlc_media_player_set_equalizer
Adrien Maglo
magsoft at gmail.com
Mon Jun 16 19:02:27 CEST 2014
This prevents the default preset to overwrite the given band settings.
---
lib/media_player.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/media_player.c b/lib/media_player.c
index 5225079..e55d2d4 100644
--- a/lib/media_player.c
+++ b/lib/media_player.c
@@ -1505,7 +1505,9 @@ int libvlc_media_player_set_equalizer( libvlc_media_player_t *p_mi, libvlc_equal
var_SetFloat( p_mi, "equalizer-preamp", p_equalizer->f_preamp );
var_SetString( p_mi, "equalizer-bands", bands );
+ var_SetString( p_mi, "equalizer-preset", NULL );
}
+
var_SetString( p_mi, "audio-filter", p_equalizer ? "equalizer" : "" );
audio_output_t *p_aout = input_resource_HoldAout( p_mi->input.p_resource );
@@ -1515,6 +1517,7 @@ int libvlc_media_player_set_equalizer( libvlc_media_player_t *p_mi, libvlc_equal
{
var_SetFloat( p_aout, "equalizer-preamp", p_equalizer->f_preamp );
var_SetString( p_aout, "equalizer-bands", bands );
+ var_SetString( p_aout, "equalizer-preset", NULL );
}
var_SetString( p_aout, "audio-filter", p_equalizer ? "equalizer" : "" );
--
1.9.1
More information about the vlc-devel
mailing list