Commit 15afdc9e 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>
(cherry picked from commit 73741d01)
parent ddf35356
......@@ -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