]> git.sesse.net Git - vlc/blobdiff - modules/video_output/msw/wingdi.c
Removes trailing spaces. Removes tabs.
[vlc] / modules / video_output / msw / wingdi.c
index ba2367be7f50a7ce9848b859a420e45547c87522..26893f21395d23891a4a9b85cc91e2e3f036cab9 100755 (executable)
@@ -25,8 +25,6 @@
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <stdlib.h>                                      /* malloc(), free() */
-#include <string.h>
 
 #include <vlc/vlc.h>
 #include <vlc_interface.h>
@@ -313,7 +311,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 */
@@ -673,10 +671,10 @@ static void DisplayGDI( vout_thread_t *p_vout, picture_t *p_pic )
 static void FirstDisplayGDI( vout_thread_t *p_vout, picture_t *p_pic )
 {
     /*
-    ** 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, 0, 0, 0, 0, 0, 
+    SetWindowPos( p_vout->p_sys->hvideownd, 0, 0, 0, 0, 0,
         SWP_ASYNCWINDOWPOS|
         SWP_FRAMECHANGED|
         SWP_SHOWWINDOW|
@@ -794,10 +792,10 @@ static void FirstDisplayGAPI( vout_thread_t *p_vout, picture_t *p_pic )
     DisplayGAPI(p_vout, p_pic);
 
     /*
-    ** 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, 0, 0, 0, 0, 0, 
+    SetWindowPos( p_vout->p_sys->hvideownd, 0, 0, 0, 0, 0,
         SWP_ASYNCWINDOWPOS|
         SWP_FRAMECHANGED|
         SWP_SHOWWINDOW|