changeset 35066:e91f5bd3214d

Consistently use "self" instead of a global variable.
author reimar
date Tue, 11 Sep 2012 19:22:18 +0000
parents 9aa803767e6a
children 3702a2b88d12
files libvo/vo_corevideo.m
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_corevideo.m	Tue Sep 11 19:15:10 2012 +0000
+++ b/libvo/vo_corevideo.m	Tue Sep 11 19:22:18 2012 +0000
@@ -481,9 +481,9 @@
 								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 @@
 		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 @@
 	if (isLeopardOrLater && [event type] == NSAppKitDefined
 			&& [event subtype] == NSApplicationActivatedEventType) {
 		[window makeMainWindow];
-		[window makeKeyAndOrderFront:mpGLView];
+		[window makeKeyAndOrderFront:self];
 	}
 #endif
 }