vlc | branch: master | Felix Paul Kühne <[email protected]> | 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];

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to