Commit d66ad858 authored by zorglub's avatar zorglub
Browse files

Do not reset preamp value if not needed (Closes:#252)

parent 34534e99
...@@ -359,7 +359,8 @@ static int EqzInit( aout_filter_t *p_filter, int i_rate ) ...@@ -359,7 +359,8 @@ static int EqzInit( aout_filter_t *p_filter, int i_rate )
strstr( p_sys->psz_newbands, val2.psz_string ) ) || !*val2.psz_string ) strstr( p_sys->psz_newbands, val2.psz_string ) ) || !*val2.psz_string )
{ {
var_SetString( p_aout, "equalizer-bands", p_sys->psz_newbands ); var_SetString( p_aout, "equalizer-bands", p_sys->psz_newbands );
var_SetFloat( p_aout, "equalizer-preamp", p_sys->f_newpreamp ); if( p_sys->f_newpreamp == p_sys->f_gamp )
var_SetFloat( p_aout, "equalizer-preamp", p_sys->f_newpreamp );
} }
/* Add our own callbacks */ /* Add our own callbacks */
......
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