[MPlayer-cvslog] r29314 - trunk/libvo/vo_corevideo.m

adrian subversion at mplayerhq.hu
Mon May 18 23:19:12 CEST 2009


Author: adrian
Date: Mon May 18 23:19:11 2009
New Revision: 29314

Log:
When used with shared_buffer, there's no need for a NSApp object, which causes MPlayer to be marked as unresponsive.

Modified:
   trunk/libvo/vo_corevideo.m

Modified: trunk/libvo/vo_corevideo.m
==============================================================================
--- trunk/libvo/vo_corevideo.m	Mon May 18 23:00:35 2009	(r29313)
+++ trunk/libvo/vo_corevideo.m	Mon May 18 23:19:11 2009	(r29314)
@@ -230,7 +230,8 @@ static int config(uint32_t width, uint32
 
 static void check_events(void)
 {
-	[mpGLView check_events];
+	if (mpGLView)
+		[mpGLView check_events];
 }
 
 static void draw_osd(void)
@@ -370,10 +371,7 @@ static int preinit(const char *arg)
 		return -1;
 	}
 
-	NSApplicationLoad();
 	autoreleasepool = [[NSAutoreleasePool alloc] init];
-	NSApp = [NSApplication sharedApplication];
-	isLeopardOrLater = floor(NSAppKitVersionNumber) > 824;
 
 	if (!buffer_name)
 		buffer_name = strdup(DEFAULT_BUFFER_NAME);
@@ -382,6 +380,10 @@ static int preinit(const char *arg)
 
 	if(!shared_buffer)
 	{
+		NSApplicationLoad();
+		NSApp = [NSApplication sharedApplication];
+		isLeopardOrLater = floor(NSAppKitVersionNumber) > 824;
+
 		#if !defined (CONFIG_MACOSX_FINDER) || !defined (CONFIG_SDL)
 		//this chunk of code is heavily based off SDL_macosx.m from SDL
 		ProcessSerialNumber myProc, frProc;


More information about the MPlayer-cvslog mailing list