Commit deee3a23 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

playlist: Be a good citizen and kill the thread before releasing fetcher and parser.

Note, this kills a non-letal warning from libvlccore.
parent 5183d34d
......@@ -169,11 +169,18 @@ static void playlist_Destructor( vlc_object_t * p_this )
playlist_t * p_playlist = (playlist_t *)p_this;
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" );
}
......
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