Commit 8e1c2ef3 authored by Rafaël Carré's avatar Rafaël Carré

fix crash in lua equalizer

parent 052ce0ee
...@@ -67,6 +67,9 @@ static int vlclua_preamp_get( lua_State *L ) ...@@ -67,6 +67,9 @@ static int vlclua_preamp_get( lua_State *L )
audio_output_t *p_aout = input_GetAout( p_input ); audio_output_t *p_aout = input_GetAout( p_input );
vlc_object_release( p_input ); vlc_object_release( p_input );
if( !p_aout)
return 0;
char *psz_af = var_GetNonEmptyString( p_aout, "audio-filter" ); char *psz_af = var_GetNonEmptyString( p_aout, "audio-filter" );
if( strstr ( psz_af, "equalizer" ) == NULL ) if( strstr ( psz_af, "equalizer" ) == NULL )
{ {
......
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