Commit 2e7cec45 authored by Jean-Paul Saman's avatar Jean-Paul Saman

mozilla: fix video overwritting toolbar issue

parent c8be4195
...@@ -74,6 +74,8 @@ VlcPlugin::VlcPlugin( NPP instance, uint16 mode ) : ...@@ -74,6 +74,8 @@ VlcPlugin::VlcPlugin( NPP instance, uint16 mode ) :
#endif #endif
{ {
memset(&npwindow, 0, sizeof(NPWindow)); memset(&npwindow, 0, sizeof(NPWindow));
memset(&npvideo, 0, sizeof(Window));
memset(&npcontrol, 0, sizeof(Window));
} }
static bool boolValue(const char *value) { static bool boolValue(const char *value) {
...@@ -279,7 +281,7 @@ void VlcPlugin::set_player_window( libvlc_exception_t *ex ) ...@@ -279,7 +281,7 @@ void VlcPlugin::set_player_window( libvlc_exception_t *ex )
{ {
#ifdef XP_UNIX #ifdef XP_UNIX
libvlc_media_player_set_xwindow(libvlc_media_player, libvlc_media_player_set_xwindow(libvlc_media_player,
(libvlc_drawable_t)getWindow().window, (libvlc_drawable_t)getVideoWindow(),
ex); ex);
#endif #endif
#ifdef XP_MACOSX #ifdef XP_MACOSX
...@@ -287,7 +289,7 @@ void VlcPlugin::set_player_window( libvlc_exception_t *ex ) ...@@ -287,7 +289,7 @@ void VlcPlugin::set_player_window( libvlc_exception_t *ex )
#endif #endif
#ifdef XP_WIN #ifdef XP_WIN
libvlc_media_player_set_hwnd(libvlc_media_player, libvlc_media_player_set_hwnd(libvlc_media_player,
getWindow().window, getVideoWindow(),
ex); ex);
#endif #endif
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment