Commit d49c4280 authored by Erwan Tulou's avatar Erwan Tulou
Browse files

skins2: update to latest change in core

 - remove pf_run no longer in use
 - attach object as soon as possible to benefit var heritage
parent 9f9dfeb8
......@@ -158,6 +158,9 @@ bool Dialogs::init()
if( m_pProvider == NULL )
return false;
// Attach the dialogs provider to its parent interface
vlc_object_attach( m_pProvider, getIntf() );
m_pModule = module_need( m_pProvider, "dialogs provider", NULL, false );
if( m_pModule == NULL )
{
......@@ -167,16 +170,6 @@ bool Dialogs::init()
return false;
}
// Attach the dialogs provider to its parent interface
vlc_object_attach( m_pProvider, getIntf() );
// Initialize dialogs provider
// (returns as soon as initialization is done)
if( m_pProvider->pf_run )
{
m_pProvider->pf_run( m_pProvider );
}
/* Register callback for the intf-popupmenu variable */
var_AddCallback( getIntf()->p_libvlc, "intf-popupmenu",
PopupMenuCB, this );
......
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