Commit de8128d1 authored by cuongab's avatar cuongab Committed by Felix Paul Kühne

Only create new equalizer when needed in 'setEqualizerEnabled' func

Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <>
parent de6adcf8
......@@ -992,7 +992,7 @@ static void HandleMediaPlayerRecord(const libvlc_event_t * event, void * self)
- (void)setEqualizerEnabled:(BOOL)equalizerEnabled
if (!_equalizerInstance) {
if (!_equalizerInstance && equalizerEnabled) {
if (!(_equalizerInstance = libvlc_audio_equalizer_new())) {
NSAssert(_equalizerInstance, @"equalizer failed to initialize");
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