# include "config.h"
#endif
-#include <vlc/vlc.h>
+#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_interface.h>
intf_StopThread( p_extraintf );
vlc_object_detach( p_extraintf );
vlc_object_release( p_extraintf );
- intf_Destroy( p_extraintf );
+ vlc_object_release( p_extraintf );
}
/* Make sure we exit (In case other interfaces have been spawned) */
sprintf( psz_temp, "%s,none", psz_module );
/* Try to create the interface */
- p_new_intf = intf_Create( p_intf, psz_temp, 0, NULL );
+ p_new_intf = intf_Create( p_intf, psz_temp );
if( p_new_intf == NULL )
{
msg_Err( p_intf, "interface \"%s\" initialization failed",
if( intf_RunThread( p_new_intf ) )
{
vlc_object_detach( p_new_intf );
- intf_Destroy( p_new_intf );
+ vlc_object_release( p_new_intf );
msg_Err( p_intf, "interface \"%s\" cannot run", psz_temp );
}