diff options
author | nplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-06-16 16:41:44 +0000 |
---|---|---|
committer | nplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-06-16 16:41:44 +0000 |
commit | 6f6ab3ba68fa2c4e829b97fe4f819a36211c6533 (patch) | |
tree | e09a5f917fce0b662eb7868f206a6c4c2dd07409 /libvo | |
parent | 643db0cf94fa1c378dba4add48bcb2ae154ddd22 (diff) | |
download | mpv-6f6ab3ba68fa2c4e829b97fe4f819a36211c6533.tar.bz2 mpv-6f6ab3ba68fa2c4e829b97fe4f819a36211c6533.tar.xz |
set nsapp and setup cocoa with NSApplicationLoad
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15738 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_macosx.m | 3 |
1 files changed, 2 insertions, 1 deletions
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]; |