[vlc-commits] macosx: also use toggleMute for apple-script action

David Fuhrmann git at videolan.org
Wed Oct 16 22:43:32 CEST 2013


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Wed Oct 16 22:39:45 2013 +0200| [2633178fb1df7a443d3b3e9f0007c5e17fc5b3e5] | committer: David Fuhrmann

macosx: also use toggleMute for apple-script action

The previous code does not make sense as there is no unmute action.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2633178fb1df7a443d3b3e9f0007c5e17fc5b3e5
---

 modules/gui/macosx/CoreInteraction.m |    9 ---------
 modules/gui/macosx/applescript.m     |    2 +-
 2 files changed, 1 insertion(+), 10 deletions(-)

diff --git a/modules/gui/macosx/CoreInteraction.m b/modules/gui/macosx/CoreInteraction.m
index f51bcfc..d885a80 100644
--- a/modules/gui/macosx/CoreInteraction.m
+++ b/modules/gui/macosx/CoreInteraction.m
@@ -510,15 +510,6 @@ static VLCCoreInteraction *_o_sharedInstance = nil;
     playlist_MuteToggle(pl_Get(p_intf));
 }
 
-- (void)setMute:(BOOL)b_value
-{
-    intf_thread_t *p_intf = VLCIntf;
-    if (!p_intf)
-        return;
-
-    playlist_MuteSet(pl_Get(p_intf), b_value);
-}
-
 - (BOOL)mute
 {
     intf_thread_t *p_intf = VLCIntf;
diff --git a/modules/gui/macosx/applescript.m b/modules/gui/macosx/applescript.m
index ddedffc..947dbc8 100644
--- a/modules/gui/macosx/applescript.m
+++ b/modules/gui/macosx/applescript.m
@@ -87,7 +87,7 @@
     else if ([o_command isEqualToString:@"fullscreen"])
         [[VLCCoreInteraction sharedInstance] toggleFullscreen];
     else if ([o_command isEqualToString:@"mute"])
-        [[VLCCoreInteraction sharedInstance] setMute: YES];
+        [[VLCCoreInteraction sharedInstance] toggleMute];
     else if ([o_command isEqualToString:@"volumeUp"])
         [[VLCCoreInteraction sharedInstance] volumeUp];
     else if ([o_command isEqualToString:@"volumeDown"])



More information about the vlc-commits mailing list