summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authornplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-06-16 16:41:44 +0000
committernplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-06-16 16:41:44 +0000
commit6f6ab3ba68fa2c4e829b97fe4f819a36211c6533 (patch)
treee09a5f917fce0b662eb7868f206a6c4c2dd07409 /libvo
parent643db0cf94fa1c378dba4add48bcb2ae154ddd22 (diff)
downloadmpv-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.m3
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];