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

reimar subversion at mplayerhq.hu
Tue Sep 11 23:23:00 CEST 2012


Author: reimar
Date: Tue Sep 11 23:23:00 2012
New Revision: 35167

Log:
Merge declaration and initialization.

Modified:
   trunk/libvo/vo_corevideo.m

Modified: trunk/libvo/vo_corevideo.m
==============================================================================
--- trunk/libvo/vo_corevideo.m	Tue Sep 11 22:29:15 2012	(r35166)
+++ trunk/libvo/vo_corevideo.m	Tue Sep 11 23:23:00 2012	(r35167)
@@ -118,13 +118,12 @@ static void draw_alpha(int x0, int y0, i
 
 static void update_screen_info(void)
 {
-	NSArray *screen_array;
+	NSArray *screen_array = [NSScreen screens];
 	NSScreen *screen_handle;
 	NSRect screen_frame;
 	if (screen_id == -1 && xinerama_screen > -1)
 		screen_id = xinerama_screen;
 
-	screen_array = [NSScreen screens];
 	if(screen_id >= (int)[screen_array count])
 	{
 		mp_msg(MSGT_VO, MSGL_INFO, "[vo_corevideo] Device ID %d does not exist, falling back to main device\n", screen_id);


More information about the MPlayer-cvslog mailing list