Commit 73741d01 authored by David Fuhrmann's avatar David Fuhrmann Committed by Felix Paul Kühne

macosx: fix crash when audio effects panel was opened

close #6252
Signed-off-by: default avatarFelix Paul Kühne <fkuehne@videolan.org>
parent f56aba45
......@@ -189,10 +189,8 @@ static bool GetEqualizerStatus( intf_thread_t *p_custom_intf,
{
vlc_object_t *p_object = VLC_OBJECT(getAout());
if( p_object == NULL )
p_object = VLC_OBJECT(pl_Get( VLCIntf ));
p_object = vlc_object_hold(pl_Get( p_intf ));
if( p_object )
{
char *psz_preset;
var_Create( p_object, "equalizer-preset", VLC_VAR_STRING | VLC_VAR_DOINHERIT );
......@@ -233,7 +231,7 @@ static bool GetEqualizerStatus( intf_thread_t *p_custom_intf,
}
}
free( psz_preset );
}
vlc_object_release( p_object );
[self equalizerUpdated];
}
......
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