[vlc-commits] fix crash in lua equalizer
Rafaël Carré
git at videolan.org
Mon Aug 1 06:08:29 CEST 2011
vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Sun Jul 31 23:24:48 2011 -0400| [8e1c2ef34917622048437f6cdcb9c41b0ca34c4b] | committer: Rafaël Carré
fix crash in lua equalizer
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8e1c2ef34917622048437f6cdcb9c41b0ca34c4b
---
modules/lua/libs/equalizer.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/lua/libs/equalizer.c b/modules/lua/libs/equalizer.c
index 9f5b800..b7e0bc18 100644
--- a/modules/lua/libs/equalizer.c
+++ b/modules/lua/libs/equalizer.c
@@ -67,6 +67,9 @@ static int vlclua_preamp_get( lua_State *L )
audio_output_t *p_aout = input_GetAout( p_input );
vlc_object_release( p_input );
+ if( !p_aout)
+ return 0;
+
char *psz_af = var_GetNonEmptyString( p_aout, "audio-filter" );
if( strstr ( psz_af, "equalizer" ) == NULL )
{
More information about the vlc-commits
mailing list