Commit e55a8802 authored by Boris Dorès's avatar Boris Dorès

- fixed a compilation issue with C compilers

parent 28a40173
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* vout.c: Windows DirectX video output display method * vout.c: Windows DirectX video output display method
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * 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> * Authors: Gildas Bazin <gbazin@netcourrier.com>
* *
...@@ -377,6 +377,9 @@ static void CloseVideo( vlc_object_t *p_this ) ...@@ -377,6 +377,9 @@ static void CloseVideo( vlc_object_t *p_this )
static int Manage( vout_thread_t *p_vout ) static int Manage( vout_thread_t *p_vout )
{ {
WINDOWPLACEMENT window_placement; WINDOWPLACEMENT window_placement;
HWND hwnd;
HMENU hMenu;
vlc_value_t val;
/* If we do not control our window, we check for geometry changes /* If we do not control our window, we check for geometry changes
* ourselves because the parent might not send us its events. */ * ourselves because the parent might not send us its events. */
...@@ -471,9 +474,8 @@ static int Manage( vout_thread_t *p_vout ) ...@@ -471,9 +474,8 @@ static int Manage( vout_thread_t *p_vout )
/* /*
* "Always on top" status change * "Always on top" status change
*/ */
HWND hwnd = p_vout->p_sys->hwnd; hwnd = p_vout->p_sys->hwnd;
HMENU hMenu = GetSystemMenu( hwnd , FALSE ); hMenu = GetSystemMenu( hwnd , FALSE );
vlc_value_t val;
var_Get( p_vout, "directx-on-top", &val ); var_Get( p_vout, "directx-on-top", &val );
if( val.b_bool ) if( val.b_bool )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment