[vlc-commits] macosx: remove unneeded eq variable initialization
David Fuhrmann
git at videolan.org
Sat May 24 10:20:42 CEST 2014
vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sat May 24 09:04:19 2014 +0200| [2fa14379ce867c9996cfda9220002211b0cc4dd9] | committer: David Fuhrmann
macosx: remove unneeded eq variable initialization
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2fa14379ce867c9996cfda9220002211b0cc4dd9
---
modules/gui/macosx/AudioEffects.h | 1 -
modules/gui/macosx/AudioEffects.m | 15 +--------------
2 files changed, 1 insertion(+), 15 deletions(-)
diff --git a/modules/gui/macosx/AudioEffects.h b/modules/gui/macosx/AudioEffects.h
index 6423cf1..031050f 100644
--- a/modules/gui/macosx/AudioEffects.h
+++ b/modules/gui/macosx/AudioEffects.h
@@ -119,7 +119,6 @@
- (void)saveCurrentProfile;
/* Equalizer */
-- (void)setupEqualizer;
- (void)equalizerUpdated;
- (void)setValue:(float)value forSlider:(int)index;
- (IBAction)eq_bandSliderUpdated:(id)sender;
diff --git a/modules/gui/macosx/AudioEffects.m b/modules/gui/macosx/AudioEffects.m
index 541d70f..21552a4 100644
--- a/modules/gui/macosx/AudioEffects.m
+++ b/modules/gui/macosx/AudioEffects.m
@@ -149,7 +149,7 @@ static VLCAudioEffects *_o_sharedInstance = nil;
if (!OSX_SNOW_LEOPARD)
[o_window setCollectionBehavior: NSWindowCollectionBehaviorFullScreenAuxiliary];
- [self setupEqualizer];
+ [self equalizerUpdated];
[self resetCompressor];
[self resetSpatializer];
[self resetAudioFilters];
@@ -439,19 +439,6 @@ static bool GetEqualizerStatus(intf_thread_t *p_custom_intf,
return false;
}
-- (void)setupEqualizer
-{
- audio_output_t *p_aout = getAout();
- if (p_aout) {
- var_Create(p_aout, "equalizer-preset", VLC_VAR_STRING | VLC_VAR_DOINHERIT);
- var_Create(p_aout, "equalizer-preamp", VLC_VAR_FLOAT | VLC_VAR_DOINHERIT);
- var_Create(p_aout, "equalizer-bands", VLC_VAR_STRING | VLC_VAR_DOINHERIT);
- vlc_object_release(p_aout);
- }
-
- [self equalizerUpdated];
-}
-
- (void)updatePresetSelector
{
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
More information about the vlc-commits
mailing list