proper init of NSApp

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15737 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nplourde
2005-06-16 16:14:05 +00:00
parent e02a9c039c
commit 643db0cf94
+1 -1
View File
@@ -240,8 +240,8 @@ static uint32_t preinit(const char *arg)
}
}
NSApplicationLoad();
autoreleasepool = [[NSAutoreleasePool alloc] init];
[NSApplication sharedApplication];
mpGLView = [[MPlayerOpenGLView alloc] initWithFrame:NSMakeRect(0, 0, 0, 0) pixelFormat:[MPlayerOpenGLView defaultPixelFormat]];
[mpGLView autorelease];