[vlc-commits] macosx/applescript: fix object initialization

Felix Paul Kühne git at videolan.org
Sun Apr 14 16:00:11 CEST 2019


vlc | branch: master | Felix Paul Kühne <felix at feepk.net> | Sun Apr 14 15:59:45 2019 +0200| [70b0c75c3de0a07eca3f63e7a028a61cf84eece3] | committer: Felix Paul Kühne

macosx/applescript: fix object initialization

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

 modules/gui/macosx/os-integration/applescript.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/macosx/os-integration/applescript.m b/modules/gui/macosx/os-integration/applescript.m
index 120d81bb8f..7260ab6308 100644
--- a/modules/gui/macosx/os-integration/applescript.m
+++ b/modules/gui/macosx/os-integration/applescript.m
@@ -70,8 +70,8 @@
 
 - (id)performDefaultImplementation
 {
-    VLCPlaylistController *playlistController;
-    VLCPlayerController *playerController;
+    VLCPlaylistController *playlistController = [[VLCMain sharedInstance] playlistController];
+    VLCPlayerController *playerController = [playlistController playerController];
 
     NSString *commandString = [[self commandDescription] commandName];
     NSString *parameterString = [self directParameter];



More information about the vlc-commits mailing list