From deee3a23527cd19beeba232358cb678a6a5c8a17 Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Wed, 9 Jul 2008 23:18:07 +0200 Subject: [PATCH] playlist: Be a good citizen and kill the thread before releasing fetcher and parser. Note, this kills a non-letal warning from libvlccore. --- src/playlist/engine.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/playlist/engine.c b/src/playlist/engine.c index 90b552663a..45b95cce92 100644 --- a/src/playlist/engine.c +++ b/src/playlist/engine.c @@ -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" ); } -- 2.39.5