[vlc-devel] commit: mozilla: fix video overwritting toolbar issue (Jean-Paul Saman )

git version control git at videolan.org
Sat Mar 7 17:19:42 CET 2009


vlc | branch: master | Jean-Paul Saman <jean-paul.saman at m2x.nl> | Fri Mar  6 14:19:44 2009 +0100| [2e7cec4521e619df4dfe2cb6f623565ee62425e8] | committer: Jean-Paul Saman 

mozilla: fix video overwritting toolbar issue

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2e7cec4521e619df4dfe2cb6f623565ee62425e8
---

 projects/mozilla/vlcplugin.cpp |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/projects/mozilla/vlcplugin.cpp b/projects/mozilla/vlcplugin.cpp
index 54680d4..80c3a29 100644
--- a/projects/mozilla/vlcplugin.cpp
+++ b/projects/mozilla/vlcplugin.cpp
@@ -74,6 +74,8 @@ VlcPlugin::VlcPlugin( NPP instance, uint16 mode ) :
 #endif
 {
     memset(&npwindow, 0, sizeof(NPWindow));
+    memset(&npvideo, 0, sizeof(Window));
+    memset(&npcontrol, 0, sizeof(Window));
 }
 
 static bool boolValue(const char *value) {
@@ -279,7 +281,7 @@ void VlcPlugin::set_player_window( libvlc_exception_t *ex )
 {
 #ifdef XP_UNIX
     libvlc_media_player_set_xwindow(libvlc_media_player,
-                                    (libvlc_drawable_t)getWindow().window,
+                                    (libvlc_drawable_t)getVideoWindow(),
                                     ex);
 #endif
 #ifdef XP_MACOSX
@@ -287,7 +289,7 @@ void VlcPlugin::set_player_window( libvlc_exception_t *ex )
 #endif
 #ifdef XP_WIN
     libvlc_media_player_set_hwnd(libvlc_media_player,
-                                 getWindow().window,
+                                 getVideoWindow(),
                                  ex);
 #endif
 }




More information about the vlc-devel mailing list