[MPlayer-cvslog] r25142 - trunk/libvo/vo_macosx.m

ulion subversion at mplayerhq.hu
Fri Nov 23 05:49:10 CET 2007


Author: ulion
Date: Fri Nov 23 05:49:10 2007
New Revision: 25142

Log:
Move the setCurrentTexture call into flip_page(), fix osd flicker problem.


Modified:
   trunk/libvo/vo_macosx.m

Modified: trunk/libvo/vo_macosx.m
==============================================================================
--- trunk/libvo/vo_macosx.m	(original)
+++ trunk/libvo/vo_macosx.m	Fri Nov 23 05:49:10 2007
@@ -180,13 +180,14 @@ static void flip_page(void)
 {
 	if(shared_buffer)
 		[mplayerosxProxy render];
-	else
+	else {
+		[mpGLView setCurrentTexture];
 		[mpGLView render];
+	}
 }
 
 static int draw_slice(uint8_t *src[], int stride[], int w,int h,int x,int y)
 {
-	[mpGLView setCurrentTexture];
 	return 0;
 }
 
@@ -205,9 +206,6 @@ static int draw_frame(uint8_t *src[])
 			break;
 	}
 	
-	if(!shared_buffer)
-		[mpGLView setCurrentTexture];
-	
 	return 0;
 }
 



More information about the MPlayer-cvslog mailing list