From 643db0cf94fa1c378dba4add48bcb2ae154ddd22 Mon Sep 17 00:00:00 2001 From: nplourde Date: Thu, 16 Jun 2005 16:14:05 +0000 Subject: proper init of NSApp git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15737 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_macosx.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libvo') diff --git a/libvo/vo_macosx.m b/libvo/vo_macosx.m index d053dfc6c5..cd6a56b6b1 100644 --- a/libvo/vo_macosx.m +++ b/libvo/vo_macosx.m @@ -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]; -- cgit v1.2.3