if( p_playlist->p_preparse )
{
- vlc_object_kill( p_playlist->p_preparse );
- vlc_thread_join( p_playlist->p_preparse );
vlc_object_release( p_playlist->p_preparse );
}
if( p_playlist->p_fetcher )
{
- vlc_object_kill( p_playlist->p_fetcher );
- vlc_thread_join( p_playlist->p_fetcher );
vlc_object_release( p_playlist->p_fetcher );
}
msg_Dbg( p_this, "Destroyed" );
/* Release the playlist lock, because we may get stuck
* in vlc_object_release() for some time. */
- printf("_______ releasing\n");
PL_UNLOCK;
vlc_object_release( p_input );
PL_LOCK;
playlist_ServicesDiscoveryKillAll( p_playlist );
playlist_MLDump( p_playlist );
+ vlc_object_kill( p_playlist->p_preparse );
+ vlc_thread_join( p_playlist->p_preparse );
+ vlc_object_kill( p_playlist->p_fetcher );
+ vlc_thread_join( p_playlist->p_fetcher );
+
PL_LOCK;
FOREACH_ARRAY( playlist_item_t *p_del, p_playlist->all_items )
free( p_del->pp_children );