[vlc-devel] [vlc-commits] Luahttp can access and modify equalizer settings

Rémi Denis-Courmont remi at remlab.net
Thu Jun 30 09:37:13 CEST 2011


> 
/*****************************************************************************
>  * Get the preamp level
> 
*****************************************************************************/
> @@ -51,11 +64,16 @@ static int vlclua_preamp_get( lua_State *L )
>      if( p_input )
>      {
>          aout_instance_t *p_aout = input_GetAout( p_input );
> +        vlc_object_release( p_input );
> +        char *psz_af = var_GetNonEmptyString( p_aout, "audio-filter" );
> +        if ( strstr ( psz_af, "equalizer" ) == NULL )
> +        {
> +            vlc_object_release( p_aout );
> +            return 0;
> +        }

I don't really get the point of this part of the patch. As far as I can
tell, it just causes the function to return 0 instead of the correct value
semi-randomly.

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the vlc-devel mailing list