[vlc-commits] macosx: fixed crash on Leopard

Felix Paul Kühne git at videolan.org
Thu Nov 10 21:40:04 CET 2011


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu Nov 10 21:39:34 2011 +0100| [d5f05e77999f3da201bb441010393bc99b1c0f99] | committer: Felix Paul Kühne

macosx: fixed crash on Leopard

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

 modules/gui/macosx/intf.m |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 387a1f3..6238816 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -571,8 +571,11 @@ static VLCMain *_o_sharedMainInstance = nil;
     var_AddCallback(p_playlist, "volume", VolumeUpdated, self);
     var_AddCallback(p_playlist, "mute", VolumeUpdated, self);
 
-    if ([NSApp currentSystemPresentationOptions] == NSApplicationPresentationFullScreen)
-        var_SetBool( p_playlist, "fullscreen", YES );
+    if (OSX_LION)
+    {
+        if ([NSApp currentSystemPresentationOptions] == NSApplicationPresentationFullScreen)
+            var_SetBool( p_playlist, "fullscreen", YES );
+    }
 
     /* load our Core Dialogs nib */
     nib_coredialogs_loaded = [NSBundle loadNibNamed:@"CoreDialogs" owner: NSApp];



More information about the vlc-commits mailing list