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

adrian subversion at mplayerhq.hu
Mon May 18 23:00:36 CEST 2009


Author: adrian
Date: Mon May 18 23:00:35 2009
New Revision: 29313

Log:
When used with shared_buffer, autorelease in each flip_page so objects don't accumulate until exit.

Modified:
   trunk/libvo/vo_corevideo.m

Modified: trunk/libvo/vo_corevideo.m
==============================================================================
--- trunk/libvo/vo_corevideo.m	Sun May 17 21:51:56 2009	(r29312)
+++ trunk/libvo/vo_corevideo.m	Mon May 18 23:00:35 2009	(r29313)
@@ -240,9 +240,11 @@ static void draw_osd(void)
 
 static void flip_page(void)
 {
-	if(shared_buffer)
+	if(shared_buffer) {
+		NSAutoreleasePool *pool = [NSAutoreleasePool new];
 		[mplayerosxProto render];
-	else {
+		[pool release];
+	} else {
 		[mpGLView setCurrentTexture];
 		[mpGLView render];
 		if (vo_doublebuffering) {


More information about the MPlayer-cvslog mailing list