summaryrefslogtreecommitdiffstats
path: root/libvo/vo_macosx.m
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/vo_macosx.m')
-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];