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

reimar subversion at mplayerhq.hu
Tue Sep 11 21:22:18 CEST 2012


Author: reimar
Date: Tue Sep 11 21:22:18 2012
New Revision: 35160

Log:
Consistently use "self" instead of a global variable.

Modified:
   trunk/libvo/vo_corevideo.m

Modified: trunk/libvo/vo_corevideo.m
==============================================================================
--- trunk/libvo/vo_corevideo.m	Tue Sep 11 21:15:10 2012	(r35159)
+++ trunk/libvo/vo_corevideo.m	Tue Sep 11 21:22:18 2012	(r35160)
@@ -481,9 +481,9 @@ static int control(uint32_t request, voi
 								backing:NSBackingStoreBuffered defer:NO];
 
 	[window autorelease];
-	[window setDelegate:mpGLView];
-	[window setContentView:mpGLView];
-	[window setInitialFirstResponder:mpGLView];
+	[window setDelegate:self];
+	[window setContentView:self];
+	[window setInitialFirstResponder:self];
 	[window setAcceptsMouseMovedEvents:YES];
 	[window setTitle:@"MPlayer - The Movie Player"];
 
@@ -554,16 +554,16 @@ static int control(uint32_t request, voi
 		mp_msg(MSGT_VO, MSGL_ERR,"[vo_corevideo] Failed to create OpenGL texture(%d)\n", error);
 
 	//show window
-	[window makeKeyAndOrderFront:mpGLView];
+	[window makeKeyAndOrderFront:self];
 
 	if(vo_rootwin)
-		[mpGLView rootwin];
+		[self rootwin];
 
 	if(vo_fs)
-		[mpGLView fullscreen: NO];
+		[self fullscreen: NO];
 
 	if(vo_ontop)
-		[mpGLView ontop];
+		[self ontop];
 }
 
 /*
@@ -937,7 +937,7 @@ static int control(uint32_t request, voi
 	if (isLeopardOrLater && [event type] == NSAppKitDefined
 			&& [event subtype] == NSApplicationActivatedEventType) {
 		[window makeMainWindow];
-		[window makeKeyAndOrderFront:mpGLView];
+		[window makeKeyAndOrderFront:self];
 	}
 #endif
 }


More information about the MPlayer-cvslog mailing list