Commit effa49e3 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

NPAPI: reparent the video

parent f72d9a0f
......@@ -304,6 +304,8 @@ public:
virtual void update_controls() = 0;
virtual void popup_menu() = 0;
virtual void set_player_window() = 0;
static bool canUseEventListener();
EventObj events;
......@@ -316,7 +318,6 @@ protected:
virtual void on_media_player_release() {};
bool playlist_select(int);
virtual void set_player_window() = 0;
/* VLC reference */
libvlc_instance_t *libvlc_instance;
......
......@@ -348,6 +348,7 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window )
p_plugin->setWindow(*window);
p_plugin->create_windows();
p_plugin->resize_windows();
p_plugin->set_player_window();
/* now set plugin state to that requested in parameters */
bool show_toolbar = p_plugin->get_options().get_show_toolbar();
......
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