Commit 90e1abb1 authored by Sergey Radionov's avatar Sergey Radionov Committed by Jean-Baptiste Kempf

npapi win32: move attaching to libvlc from set_player_window to on_media_player_new

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 42d3b412
......@@ -86,11 +86,6 @@ VlcPluginWin::~VlcPluginWin()
destroy_windows();
}
void VlcPluginWin::set_player_window()
{
_WindowsManager.LibVlcAttach(libvlc_media_player);
}
void VlcPluginWin::toggle_fullscreen()
{
_WindowsManager.ToggleFullScreen();
......@@ -177,6 +172,12 @@ bool VlcPluginWin::destroy_windows()
return true;
}
void VlcPluginWin::on_media_player_new()
{
_WindowsManager.LibVlcAttach(libvlc_media_player);
}
void VlcPluginWin::on_media_player_release()
{
_WindowsManager.LibVlcDetach();
......
......@@ -63,10 +63,11 @@ public:
{ pf_wndproc = wndproc; };
protected:
virtual void on_media_player_new();
virtual void on_media_player_release();
private:
void set_player_window();
void set_player_window(){};
unsigned int i_width, i_height;
unsigned int i_tb_width, i_tb_height;
......
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