Commit 232cc83d authored by Sergey Radionov's avatar Sergey Radionov Committed by Jean-Baptiste Kempf

npapi: added members for notification child classes about creation/destroying of media_player_t

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 8663bd56
......@@ -650,6 +650,7 @@ bool VlcPluginBase::playlist_select( int idx )
if( playlist_isplaying() )
playlist_stop();
events.unhook_manager( this );
on_media_player_release();
libvlc_media_player_release( libvlc_media_player );
libvlc_media_player = NULL;
}
......@@ -657,6 +658,7 @@ bool VlcPluginBase::playlist_select( int idx )
libvlc_media_player = libvlc_media_player_new_from_media( p_m );
if( libvlc_media_player )
{
on_media_player_new();
set_player_window();
libvlc_event_manager_t *p_em;
......
......@@ -293,6 +293,11 @@ public:
void event_callback(const libvlc_event_t *, NPVariant *, uint32_t);
protected:
// called after libvlc_media_player_new_from_media
virtual void on_media_player_new() {};
// called before libvlc_media_player_release
virtual void on_media_player_release() {};
bool playlist_select(int);
virtual void set_player_window() = 0;
......
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