changeset 35073:cae3fc699368

Merge declaration and initialization.
author reimar
date Tue, 11 Sep 2012 21:23:00 +0000
parents 5d9e4777593b
children 3fb18ad99003
files libvo/vo_corevideo.m
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_corevideo.m	Tue Sep 11 20:29:15 2012 +0000
+++ b/libvo/vo_corevideo.m	Tue Sep 11 21:23:00 2012 +0000
@@ -118,13 +118,12 @@
 
 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);