[vlc-commits] npapi win32: route ~VlcPluginWin to destroy_windows

Sergey Radionov git at videolan.org
Wed Dec 21 12:54:12 CET 2011


npapi-vlc | branch: master | Sergey Radionov <RSATom at gmail.com> | Tue Dec 13 09:28:25 2011 +0700| [3c92f8d138dd798b6155c4ecf2c5be810dafeca5] | committer: Jean-Baptiste Kempf

npapi win32: route ~VlcPluginWin to destroy_windows

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 npapi/vlcplugin_win.cpp |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)

diff --git a/npapi/vlcplugin_win.cpp b/npapi/vlcplugin_win.cpp
index 97e50a7..7e61728 100644
--- a/npapi/vlcplugin_win.cpp
+++ b/npapi/vlcplugin_win.cpp
@@ -83,15 +83,7 @@ VlcPluginWin::VlcPluginWin(NPP instance, NPuint16_t mode) :
 
 VlcPluginWin::~VlcPluginWin()
 {
-    HWND win = (HWND)getWindow().window;
-    WNDPROC winproc = getWindowProc();
-    if( winproc )
-    {
-        /* reset WNDPROC */
-        SetWindowLongPtr( win, GWLP_WNDPROC, (LONG_PTR)winproc );
-    }
-
-    _WindowsManager.DestroyWindows();
+    destroy_windows();
 }
 
 void VlcPluginWin::set_player_window()



More information about the vlc-commits mailing list