[vlc-commits] npapi win32: fixed crash on close with active fullscreen mode.

Sergey Radionov git at videolan.org
Thu Jan 5 03:00:04 CET 2012


npapi-vlc | branch: master | Sergey Radionov <RSATom at gmail.com> | Sun Jan  1 22:41:21 2012 +0700| [32985f8fb1c7ec073e15e016714233c6756bd617] | committer: Sergey Radionov

npapi win32: fixed crash on close with active fullscreen mode.

> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=32985f8fb1c7ec073e15e016714233c6756bd617
---

 common/win32_fullscreen.cpp |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/common/win32_fullscreen.cpp b/common/win32_fullscreen.cpp
index 7327760..0ac1cc5 100644
--- a/common/win32_fullscreen.cpp
+++ b/common/win32_fullscreen.cpp
@@ -846,15 +846,15 @@ void VLCWindowsManager::CreateWindows(HWND hWindowedParentWnd)
 
 void VLCWindowsManager::DestroyWindows()
 {
-    if(_FSWnd){
-        _FSWnd->DestroyWindow();
-    }
-    _FSWnd = 0;
-
     if(_HolderWnd){
         _HolderWnd->DestroyWindow();
     }
     _HolderWnd = 0;
+
+    if(_FSWnd){
+        _FSWnd->DestroyWindow();
+    }
+    _FSWnd = 0;
 }
 
 void VLCWindowsManager::LibVlcAttach(libvlc_media_player_t* p_md)



More information about the vlc-commits mailing list