]> git.sesse.net Git - vlc/blobdiff - src/misc/threads.c
Remove p_playlist from p_libvlc
[vlc] / src / misc / threads.c
index 8b0b3b9e5629a584f6a42f9760fb2cca2b1d3504..eb907eee467900b14d4b16e25feedbadf16ef65f 100644 (file)
@@ -151,7 +151,6 @@ int vlc_threads_init( void )
         }
 
         /* We should be safe now. Do all the initialization stuff we want. */
-        p_root->b_ready = false;
         vlc_threadvar_create( p_root, &msg_context_global_key );
     }
     i_initializations++;
@@ -184,7 +183,8 @@ void vlc_threads_end( void )
 #endif
 
     assert( i_initializations > 0 );
-    if( i_initializations == 0 )
+
+    if( i_initializations == 1 )
         vlc_object_release( p_root );
     i_initializations--;