summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-08-14 23:16:17 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-08-14 23:16:17 +0000
commita96150da8513c4536e3be1b9cc75c565bd482021 (patch)
tree742c42a7365c37d4d0d2bdf4cf4cdaa596e95480 /libvo
parent3bb469246d4f3a0fc767102cc14304e8711edf5c (diff)
downloadmpv-a96150da8513c4536e3be1b9cc75c565bd482021.tar.bz2
mpv-a96150da8513c4536e3be1b9cc75c565bd482021.tar.xz
10l, initializers don't work without a declaration :-(
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16227 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/w32_common.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libvo/w32_common.c b/libvo/w32_common.c
index a22e50e92f..cb8b9bccec 100644
--- a/libvo/w32_common.c
+++ b/libvo/w32_common.c
@@ -205,7 +205,6 @@ int createRenderingContext(void) {
int vo_init(void) {
HICON mplayerIcon = 0;
char exedir[MAX_PATH];
- WNDCLASSEX wcex;
if (vo_window)
return 1;
@@ -217,12 +216,14 @@ int vo_init(void) {
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) {