changeset 35065:9aa803767e6a

Add missing "static" to global variables.
author reimar
date Tue, 11 Sep 2012 19:15:10 +0000
parents 7a91c386ad95
children e91f5bd3214d
files libvo/vo_corevideo.m
diffstat 1 files changed, 11 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_corevideo.m	Sun Sep 09 21:10:19 2012 +0000
+++ b/libvo/vo_corevideo.m	Tue Sep 11 19:15:10 2012 +0000
@@ -50,25 +50,24 @@
 #include "osx_common.h"
 
 //Cocoa
-NSDistantObject *mplayerosxProxy;
-id <MPlayerOSXVOProto> mplayerosxProto;
-MPlayerOpenGLView *mpGLView;
-NSAutoreleasePool *autoreleasepool;
-OSType pixelFormat;
+static NSDistantObject *mplayerosxProxy;
+static id <MPlayerOSXVOProto> mplayerosxProto;
+static MPlayerOpenGLView *mpGLView;
+static NSAutoreleasePool *autoreleasepool;
+static OSType pixelFormat;
 
 //shared memory
-BOOL shared_buffer = false;
+static BOOL shared_buffer = false;
 #define DEFAULT_BUFFER_NAME "mplayerosx"
 static char *buffer_name;
 
 //Screen
-int screen_id = -1;
-NSRect screen_frame;
-NSScreen *screen_handle;
-NSArray *screen_array;
+static int screen_id = -1;
+static NSRect screen_frame;
+static NSScreen *screen_handle;
 
 //image
-unsigned char *image_data;
+static unsigned char *image_data;
 // For double buffering
 static uint8_t image_page = 0;
 static unsigned char *image_datas[2];
@@ -121,6 +120,7 @@
 
 static void update_screen_info(void)
 {
+	NSArray *screen_array;
 	if (screen_id == -1 && xinerama_screen > -1)
 		screen_id = xinerama_screen;