msg_Err( p_intf, "out of memory" );
return VLC_ENOMEM;
}
+ memset( p_intf->p_sys, 0, sizeof( intf_sys_t ) );
p_intf->pf_run = Run;
vlc_object_release( p_intf->p_sys->p_input );
}
+ vlc_mutex_lock( &p_intf->object_lock );
+ p_intf->b_dead = VLC_TRUE;
+ vlc_mutex_unlock( &p_intf->object_lock );
+
if( p_intf->pf_show_dialog )
{
/* We must destroy the dialogs thread */
FIND_ANYWHERE );
if( p_playlist )
{
- vlc_mutex_lock( &p_playlist->object_lock );
- if( p_playlist->i_size )
- {
- vlc_mutex_unlock( &p_playlist->object_lock );
- playlist_Play( p_playlist );
- }
- else
- {
- vlc_mutex_unlock( &p_playlist->object_lock );
- }
+ playlist_Play( p_playlist );
vlc_object_release( p_playlist );
}
}