]> git.sesse.net Git - vlc/commitdiff
mozilla: fix video overwritting toolbar issue
authorJean-Paul Saman <jean-paul.saman@m2x.nl>
Fri, 6 Mar 2009 13:19:44 +0000 (14:19 +0100)
committerJean-Paul Saman <jean-paul.saman@m2x.nl>
Sat, 7 Mar 2009 16:00:41 +0000 (17:00 +0100)
projects/mozilla/vlcplugin.cpp

index 54680d46711f57d2126116f80277b62254780275..80c3a29d3d2fe8630035d621243dc85ed3d690d4 100644 (file)
@@ -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
 }