Commit 5683a41d authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

VLCPlugin_base: simplification and cleaning

parent c8a669a8
...@@ -73,25 +73,23 @@ public: ...@@ -73,25 +73,23 @@ public:
{ return *static_cast<const vlc_player_options*>(this); } { return *static_cast<const vlc_player_options*>(this); }
NPError init(int argc, char* const argn[], char* const argv[]); NPError init(int argc, char* const argn[], char* const argv[]);
libvlc_instance_t* getVLC()
{ return libvlc_instance; };
libvlc_media_player_t* getMD() libvlc_media_player_t* getMD()
{ {
if( !get_player().is_open() ) if( !is_open() )
{ {
libvlc_printerr("no mediaplayer"); libvlc_printerr("no mediaplayer");
} }
return get_player().get_mp(); return get_player().get_mp();
} }
NPP getBrowser()
{ return p_browser; }; NPP getBrowser() { return p_browser; };
char* getAbsoluteURL(const char *url); char* getAbsoluteURL(const char *url);
NPWindow& getWindow()
{ return npwindow; }; NPWindow& getWindow() { return npwindow; };
virtual void setWindow(const NPWindow &window); virtual void setWindow(const NPWindow &window);
NPClass* getScriptClass() NPClass* getScriptClass() { return p_scriptClass; };
{ return p_scriptClass; };
NPuint16_t i_npmode; /* either NP_EMBED or NP_FULL */ NPuint16_t i_npmode; /* either NP_EMBED or NP_FULL */
......
...@@ -337,8 +337,6 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window ) ...@@ -337,8 +337,6 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window )
return NPERR_NO_ERROR; return NPERR_NO_ERROR;
} }
p_plugin->getVLC();
/* /*
* PLUGIN DEVELOPERS: * PLUGIN DEVELOPERS:
* Before setting window to point to the * Before setting window to point to the
......
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