}
p_new->p_libvlc_int = p_libvlc_int;
- p_new->p_vlm = NULL;
- p_new->p_event_manager = NULL;
+ p_new->libvlc_vlm.p_vlm = NULL;
+ p_new->libvlc_vlm.p_event_manager = NULL;
+ p_new->libvlc_vlm.pf_release = NULL;
p_new->b_playlist_locked = 0;
p_new->ref_count = 1;
p_new->verbosity = 1;
{
vlc_mutex_destroy( lock );
vlc_mutex_destroy( &p_instance->event_callback_lock );
- if( p_instance->p_event_manager )
- libvlc_event_manager_release( p_instance->p_event_manager );
- if( p_instance->p_vlm )
- vlm_Delete( p_instance->p_vlm );
+ if( p_instance->libvlc_vlm.pf_release )
+ p_instance->libvlc_vlm.pf_release( p_instance );
libvlc_InternalCleanup( p_instance->p_libvlc_int );
libvlc_InternalDestroy( p_instance->p_libvlc_int );
free( p_instance );