]> git.sesse.net Git - vlc/blobdiff - src/libvlc.c
Create preparser and fetcher immediately
[vlc] / src / libvlc.c
index 4c033fe80cb1fb4353b85086085cbcd1bd2f726b..91e16cb65cdb733320e343e9b4dd4914c8d3949d 100644 (file)
@@ -1015,9 +1015,8 @@ void libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
     }
 #endif
 
-    /* Free playlist now */
-    msg_Dbg( p_libvlc, "removing playlist" );
-    vlc_object_release( p_playlist );
+    /* Free playlist now, all threads are gone */
+    playlist_Destroy( p_playlist );
 
     stats_TimersDumpAll( p_libvlc );
     stats_TimersCleanAll( p_libvlc );