[vlc-devel] [PATCH 2/7] npapi win32: added handling of destroying of media_player_t
Sergey Radionov
rsatom at gmail.com
Sat Dec 24 02:17:09 CET 2011
---
npapi/vlcplugin_win.cpp | 4 ++++
npapi/vlcplugin_win.h | 3 +++
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/npapi/vlcplugin_win.cpp b/npapi/vlcplugin_win.cpp
index 8e54c5d..260c77e 100644
--- a/npapi/vlcplugin_win.cpp
+++ b/npapi/vlcplugin_win.cpp
@@ -177,3 +177,7 @@ bool VlcPluginWin::destroy_windows()
return true;
}
+void VlcPluginWin::on_media_player_release()
+{
+ _WindowsManager.LibVlcDetach();
+}
diff --git a/npapi/vlcplugin_win.h b/npapi/vlcplugin_win.h
index e5ede7b..249c9f4 100644
--- a/npapi/vlcplugin_win.h
+++ b/npapi/vlcplugin_win.h
@@ -62,6 +62,9 @@ public:
void setWindowProc(WNDPROC wndproc)
{ pf_wndproc = wndproc; };
+protected:
+ virtual void on_media_player_release();
+
private:
void set_player_window();
--
1.7.7.1.msysgit.0
More information about the vlc-devel
mailing list