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

David Fuhrmann git at videolan.org
Wed Oct 16 22:44:41 CEST 2013


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

macosx: also use toggleMute for apple-script action

The previous code does not make sense as there is no unmute action.
(cherry picked from commit 2633178fb1df7a443d3b3e9f0007c5e17fc5b3e5)

Signed-off-by: David Fuhrmann <david.fuhrmann at googlemail.com>

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

 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