]> git.sesse.net Git - vlc/commitdiff
macosx: fix start in fullscreen setting
authorDavid Fuhrmann <david.fuhrmann@googlemail.com>
Thu, 2 May 2013 10:36:36 +0000 (12:36 +0200)
committerDavid Fuhrmann <david.fuhrmann@googlemail.com>
Thu, 2 May 2013 10:38:24 +0000 (12:38 +0200)
Should be finally working now...

close #8399

modules/gui/macosx/intf.m

index fea4ff754770a7b7b601741ad358174f63dece31..64930c4320fe6ce095206fcc63834304dfb0c18a 100644 (file)
@@ -179,12 +179,12 @@ int WindowOpen(vout_window_t *p_wnd, const vout_window_cfg_t *cfg)
     p_wnd->handle.nsobject = videoView;
 
     // TODO: find a cleaner way for "start in fullscreen"
-    if (var_GetBool(pl_Get(VLCIntf), "fullscreen")) {
+    if (var_InheritBool(VLCIntf, "fullscreen")) {
         int i_full = 1;
 
         SEL sel = @selector(setFullscreen:forWindow:);
-        NSInvocation *inv = [NSInvocation invocationWithMethodSignature:[[[VLCMain sharedInstance] voutController] methodSignatureForSelector:sel]];
-        [inv setTarget:[[VLCMain sharedInstance] voutController]];
+        NSInvocation *inv = [NSInvocation invocationWithMethodSignature:[o_vout_controller methodSignatureForSelector:sel]];
+        [inv setTarget:o_vout_controller];
         [inv setSelector:sel];
         [inv setArgument:&i_full atIndex:2];
         [inv setArgument:&p_wnd atIndex:3];