From 6f6ab3ba68fa2c4e829b97fe4f819a36211c6533 Mon Sep 17 00:00:00 2001 From: nplourde Date: Thu, 16 Jun 2005 16:41:44 +0000 Subject: [PATCH] set nsapp and setup cocoa with NSApplicationLoad git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15738 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_macosx.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libvo/vo_macosx.m b/libvo/vo_macosx.m index cd6a56b6b1..819fcc428b 100644 --- a/libvo/vo_macosx.m +++ b/libvo/vo_macosx.m @@ -240,8 +240,9 @@ static uint32_t preinit(const char *arg) } } + NSApplicationLoad(); autoreleasepool = [[NSAutoreleasePool alloc] init]; - [NSApplication sharedApplication]; + NSApp = [NSApplication sharedApplication]; mpGLView = [[MPlayerOpenGLView alloc] initWithFrame:NSMakeRect(0, 0, 0, 0) pixelFormat:[MPlayerOpenGLView defaultPixelFormat]]; [mpGLView autorelease];