[vlc-commits] macosx: fix start in fullscreen setting
David Fuhrmann
git at videolan.org
Thu May 2 13:09:05 CEST 2013
vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Thu May 2 12:36:36 2013 +0200| [304be3727e8e7742fd978cb86717705f7ea168b2] | committer: David Fuhrmann
macosx: fix start in fullscreen setting
Should be finally working now...
close #8399
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=304be3727e8e7742fd978cb86717705f7ea168b2
---
modules/gui/macosx/intf.m | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index fea4ff7..64930c4 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -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];
More information about the vlc-commits
mailing list