* modules/video_output/directx/events.c: fixed deadlock when switching deinterlacing...
authorGildas Bazin <gbazin@videolan.org>
Tue, 25 May 2004 12:07:19 +0000 (12:07 +0000)
committerGildas Bazin <gbazin@videolan.org>
Tue, 25 May 2004 12:07:19 +0000 (12:07 +0000)
modules/video_output/directx/events.c

index e366b25..c8e24c9 100644 (file)
@@ -455,8 +455,11 @@ static int DirectXCreateWindow( vout_thread_t *p_vout )
 
         /* We don't want the window owner to overwrite our client area */
         i_style = GetWindowLong( p_vout->p_sys->hparent, GWL_STYLE );
-        SetWindowLong( p_vout->p_sys->hparent, GWL_STYLE,
-                       i_style | WS_CLIPCHILDREN );
+
+        if( !(i_style & WS_CLIPCHILDREN) )
+            /* Hmmm, apparently this is a blocking call... */
+            SetWindowLong( p_vout->p_sys->hparent, GWL_STYLE,
+                           i_style | WS_CLIPCHILDREN );
 
     }