]> git.sesse.net Git - vlc/commitdiff
- fixed a compilation issue with C compilers
authorBoris Dorès <babal@videolan.org>
Sat, 1 Feb 2003 09:40:50 +0000 (09:40 +0000)
committerBoris Dorès <babal@videolan.org>
Sat, 1 Feb 2003 09:40:50 +0000 (09:40 +0000)
modules/video_output/directx/directx.c

index bd946c861c73b5c5451487c528576eed7d813b9a..27f130b4ee5c386959b3d30f3971c9c16cb348a6 100644 (file)
@@ -2,7 +2,7 @@
  * vout.c: Windows DirectX video output display method
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: directx.c,v 1.10 2003/01/26 02:22:59 ipkiss Exp $
+ * $Id: directx.c,v 1.11 2003/02/01 09:40:50 babal Exp $
  *
  * Authors: Gildas Bazin <gbazin@netcourrier.com>
  *
@@ -377,6 +377,9 @@ static void CloseVideo( vlc_object_t *p_this )
 static int Manage( vout_thread_t *p_vout )
 {
     WINDOWPLACEMENT window_placement;
+    HWND hwnd;
+    HMENU hMenu;
+    vlc_value_t val;
 
     /* If we do not control our window, we check for geometry changes
      * ourselves because the parent might not send us its events. */
@@ -471,9 +474,8 @@ static int Manage( vout_thread_t *p_vout )
     /*
      * "Always on top" status change
      */
-    HWND hwnd = p_vout->p_sys->hwnd;
-    HMENU hMenu = GetSystemMenu( hwnd , FALSE );
-    vlc_value_t val;
+    hwnd = p_vout->p_sys->hwnd;
+    hMenu = GetSystemMenu( hwnd , FALSE );
     var_Get( p_vout, "directx-on-top", &val );
     if( val.b_bool )
     {