[vlc-commits] macosx: fixed compilation warnings
Felix Paul Kühne
git at videolan.org
Tue Aug 9 16:19:26 CEST 2011
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Tue Aug 9 16:19:11 2011 +0200| [b0f3b7ae485bd381ed6bcd33b09ac7cecbd23c03] | committer: Felix Paul Kühne
macosx: fixed compilation warnings
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b0f3b7ae485bd381ed6bcd33b09ac7cecbd23c03
---
modules/gui/macosx/applescript.m | 18 +++++++++++++++---
1 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/modules/gui/macosx/applescript.m b/modules/gui/macosx/applescript.m
index 93e0d45..ca849f8 100644
--- a/modules/gui/macosx/applescript.m
+++ b/modules/gui/macosx/applescript.m
@@ -136,11 +136,23 @@
@implementation NSApplication(ScriptSupport)
- (BOOL) scriptFullscreenMode {
- return [[[VLCMain sharedInstance] controls] isFullscreen];
+ vout_thread_t * p_vout = getVout();
+ if( !p_vout )
+ return NO;
+ BOOL b_value = var_GetBool( p_vout, "fullscreen");
+ vlc_object_release( p_vout );
+ return b_value;
}
- (void) setScriptFullscreenMode: (BOOL) mode {
- VLCControls * o_controls = [[VLCMain sharedInstance] controls];
- if (mode == [o_controls isFullscreen]) return;
+ vout_thread_t * p_vout = getVout();
+ if( !p_vout )
+ return;
+ if (var_GetBool( p_vout, "fullscreen") == mode)
+ {
+ vlc_object_release( p_vout );
+ return;
+ }
+ vlc_object_release( p_vout );
[[VLCCoreInteraction sharedInstance] toggleFullscreen];
}
More information about the vlc-commits
mailing list