[vlc-devel] [PATCH 1/4] npapi win32: added protection from multiple calling of create_windows();
Sergey Radionov
rsatom at gmail.com
Fri Dec 30 11:46:33 CET 2011
---
npapi/vlcplugin_win.cpp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/npapi/vlcplugin_win.cpp b/npapi/vlcplugin_win.cpp
index 5b40f7a..745cfec 100644
--- a/npapi/vlcplugin_win.cpp
+++ b/npapi/vlcplugin_win.cpp
@@ -101,6 +101,9 @@ bool VlcPluginWin::create_windows()
{
HWND drawable = (HWND) (getWindow().window);
+ if( GetWindowLongPtr(drawable, GWLP_USERDATA) )
+ return false;
+
/* attach our plugin object */
SetWindowLongPtr(drawable, GWLP_USERDATA,
(LONG_PTR)this);
--
1.7.7.1.msysgit.0
More information about the vlc-devel
mailing list