[vlc-devel] [PATCH 4/4] npapi win32: call destroy_windows on drawable destroying (opera compatibility fix)

Sergey Radionov rsatom at gmail.com
Fri Dec 30 11:49:32 CET 2011


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

diff --git a/npapi/vlcplugin_win.cpp b/npapi/vlcplugin_win.cpp
index d36b078..a4a1f33 100644
--- a/npapi/vlcplugin_win.cpp
+++ b/npapi/vlcplugin_win.cpp
@@ -54,6 +54,12 @@ LRESULT CALLBACK VlcPluginWin::NPWndProcR( HWND p_hwnd, UINT i_msg, WPARAM wpar,
 {
     VlcPluginWin *p_plugin = reinterpret_cast<VlcPluginWin *>(GetWindowLongPtr(p_hwnd, GWLP_USERDATA));
 
+    switch( i_msg ){
+        case WM_DESTROY:
+            p_plugin->destroy_windows();
+            break;
+    }
+
     /* delegate to default handler */
     return CallWindowProc( p_plugin->_NPWndProc, p_hwnd,
                            i_msg, wpar, lpar );
-- 
1.7.7.1.msysgit.0




More information about the vlc-devel mailing list