[vlc-commits] npapi win32: added protection from multiple calling of create_windows();
Sergey Radionov
git at videolan.org
Sat Dec 31 03:50:19 CET 2011
npapi-vlc | branch: master | Sergey Radionov <RSATom at gmail.com> | Fri Dec 30 11:08:48 2011 +0700| [bff3c7a413de5e674ae9dc2c18ffdc673fb3cbae] | committer: Sergey Radionov
npapi win32: added protection from multiple calling of create_windows();
> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=bff3c7a413de5e674ae9dc2c18ffdc673fb3cbae
---
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);
More information about the vlc-commits
mailing list