[vlc-devel] [PATCH] Windows windowless: Fix compatibility with Chrome

Cheng Sun chengsun9 at gmail.com
Fri Jan 4 21:52:55 CET 2013


---
 npapi/vlcwindowless_win.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/npapi/vlcwindowless_win.cpp b/npapi/vlcwindowless_win.cpp
index e7bae77..c237bf2 100644
--- a/npapi/vlcwindowless_win.cpp
+++ b/npapi/vlcwindowless_win.cpp
@@ -45,7 +45,7 @@ bool VlcWindowlessWin::handle_event(void *event)
     switch (npevent->event) {
     case WM_PAINT:
         BOOL ret;
-        HDC hDC = reinterpret_cast<HDC> (npwindow.window);
+        HDC hDC = reinterpret_cast<HDC> (npevent->wParam);
         if (!hDC) {
             fprintf(stderr, "NULL HDC given by browser\n");
             return false;
-- 
1.8.0.3




More information about the vlc-devel mailing list