[vlc-commits] npapi win32: added handling of destroying of media_player_t
Sergey Radionov
git at videolan.org
Sat Dec 24 14:40:03 CET 2011
npapi-vlc | branch: master | Sergey Radionov <RSATom at gmail.com> | Sat Dec 24 08:03:50 2011 +0700| [42d3b41280c7c4030f8d0d214461e9b6703371aa] | committer: Jean-Baptiste Kempf
npapi win32: added handling of destroying of media_player_t
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=42d3b41280c7c4030f8d0d214461e9b6703371aa
---
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();
More information about the vlc-commits
mailing list