[MPlayer-cvslog] CVS: main/libvo w32_common.c,1.12,1.13

Reimar Döffinger CVS syncmail at mplayerhq.hu
Mon Aug 15 01:16:19 CEST 2005


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv5819a

Modified Files:
	w32_common.c 
Log Message:
10l, initializers don't work without a declaration :-(


Index: w32_common.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/w32_common.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- w32_common.c	14 Aug 2005 10:30:18 -0000	1.12
+++ w32_common.c	14 Aug 2005 23:16:17 -0000	1.13
@@ -205,7 +205,6 @@
 int vo_init(void) {
     HICON 	mplayerIcon = 0;
     char 	exedir[MAX_PATH];
-    WNDCLASSEX	wcex;
 
     if (vo_window)
 	return 1;
@@ -217,12 +216,14 @@
     if (!mplayerIcon)
 	mplayerIcon = LoadIcon(0, IDI_APPLICATION);
 
-    wcex = { sizeof wcex, CS_OWNDC, WndProc, 0, 0, hInstance, mplayerIcon, LoadCursor(0, IDC_ARROW), (HBRUSH)GetStockObject(BLACK_BRUSH), 0, classname, mplayerIcon };
+  {
+    WNDCLASSEX wcex = { sizeof wcex, CS_OWNDC, WndProc, 0, 0, hInstance, mplayerIcon, LoadCursor(0, IDC_ARROW), (HBRUSH)GetStockObject(BLACK_BRUSH), 0, classname, mplayerIcon };
 
     if (!RegisterClassEx(&wcex)) {
 	mp_msg(MSGT_VO, MSGL_ERR, "vo: win32: unable to register window class!\n");
 	return 0;
     }
+  }
 
     vo_window = CreateWindowEx(0, classname, classname, WS_POPUP, CW_USEDEFAULT, 0, 100, 100, 0, 0, hInstance, 0);
     if (!vo_window) {




More information about the MPlayer-cvslog mailing list