]> git.sesse.net Git - vlc/blobdiff - modules/video_output/msw/directx.c
Removes trailing spaces. Removes tabs.
[vlc] / modules / video_output / msw / directx.c
index e6500b726021d24df0a42be26bae530a91deef64..2b97b828d570f910913acae3c5b19d4baa2889a6 100644 (file)
@@ -35,8 +35,6 @@
  *
  *****************************************************************************/
 #include <errno.h>                                                 /* ENOMEM */
-#include <stdlib.h>                                                /* free() */
-#include <string.h>                                            /* strerror() */
 
 #include <vlc/vlc.h>
 #include <vlc_interface.h>
@@ -493,7 +491,7 @@ static void CloseVideo( vlc_object_t *p_this )
         vlc_object_detach( p_vout->p_sys->p_event );
 
         /* Kill Vout EventThread */
-        p_vout->p_sys->p_event->b_die = VLC_TRUE;
+        vlc_object_kill( p_vout->p_sys->p_event );
 
         /* we need to be sure Vout EventThread won't stay stuck in
          * GetMessage, so we send a fake message */
@@ -796,10 +794,10 @@ static void FirstDisplay( vout_thread_t *p_vout, picture_t *p_pic )
                       (LONG)CreateSolidBrush( p_vout->p_sys->i_rgb_colorkey ) );
     }
     /*
-    ** Video window is initially hidden, show it now since we got a 
+    ** Video window is initially hidden, show it now since we got a
     ** picture to show.
     */
-    SetWindowPos( p_vout->p_sys->hvideownd, NULL, 0, 0, 0, 0, 
+    SetWindowPos( p_vout->p_sys->hvideownd, NULL, 0, 0, 0, 0,
         SWP_ASYNCWINDOWPOS|
         SWP_FRAMECHANGED|
         SWP_SHOWWINDOW|
@@ -2034,7 +2032,7 @@ void SwitchWallpaperMode( vout_thread_t *p_vout, vlc_bool_t b_on )
     }
 
     /* Update desktop */
-    InvalidateRect( hwnd, NULL, TRUE );            
+    InvalidateRect( hwnd, NULL, TRUE );
     UpdateWindow( hwnd );
 }