[vlc-commits] macosx: don't reload default audio profile if already loaded
Victorien Le Couviour--Tuffet
git at videolan.org
Thu Jul 13 11:25:57 CEST 2017
vlc | branch: master | Victorien Le Couviour--Tuffet <victorien.lecouviour.tuffet at gmail.com> | Mon Jul 3 21:51:40 2017 +0200| [796facc89f86737843d18707ef904c65bceb3d27] | committer: Jean-Baptiste Kempf
macosx: don't reload default audio profile if already loaded
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=796facc89f86737843d18707ef904c65bceb3d27
---
modules/gui/macosx/VLCAudioEffectsWindowController.m | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/gui/macosx/VLCAudioEffectsWindowController.m b/modules/gui/macosx/VLCAudioEffectsWindowController.m
index 85518a885f..4b51c69791 100644
--- a/modules/gui/macosx/VLCAudioEffectsWindowController.m
+++ b/modules/gui/macosx/VLCAudioEffectsWindowController.m
@@ -300,7 +300,8 @@
}
[_profilePopup selectItemAtIndex:[defaults integerForKey:@"AudioEffectSelectedProfile"]];
- [self profileSelectorAction:self];
+ if (i_old_profile_index || [[NSUserDefaults standardUserDefaults] integerForKey:@"AudioEffectSelectedProfile"])
+ [self profileSelectorAction:self];
}
#pragma mark -
More information about the vlc-commits
mailing list