]> git.sesse.net Git - vlc/commitdiff
Revert "msw(Win32): properly terminate vlc when SC_CLOSE received"
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 29 Jan 2011 08:58:01 +0000 (10:58 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 29 Jan 2011 08:58:01 +0000 (10:58 +0200)
This reverts commit 7b18ec43935a5e70ee8506b2fcb3e230b78b44d4.
This broke LibVLC and wall.

modules/video_output/msw/events.c

index 937d8002e110ea5c5544eeb908ec16833a113bc7..def6f7edc310384b027aa8d8118da182f987ae30 100644 (file)
@@ -33,7 +33,6 @@
 #include <vlc_common.h>
 #include <vlc_vout_display.h>
 #include <vlc_vout_window.h>
-#include <vlc_interface.h>
 
 #include <windows.h>
 #include <windowsx.h>
@@ -747,15 +746,6 @@ static long FAR PASCAL DirectXEventProc( HWND hwnd, UINT message,
     }
     vout_display_t *vd = p_event->vd;
 
-    /* Close requested by user */
-    if( message == WM_SYSCOMMAND &&
-        (wParam & 0xFFF0) == SC_CLOSE )
-    {
-        msg_Dbg( vd, "SC_CLOSE received, leaving vlc" );
-        libvlc_Quit( vd->p_libvlc );
-        return 0;
-    }
-
 #ifndef UNDER_CE
     /* Catch the screensaver and the monitor turn-off */
     if( message == WM_SYSCOMMAND &&