]> git.sesse.net Git - vlc/blobdiff - src/libvlc-common.c
Remove p_root->b_ready. Duplicated state.
[vlc] / src / libvlc-common.c
index 4820619a4e61ee42a0f5949e5c81cb0c5e96723a..2cd9d67aab4450af124d3044f8115fb53ca1d79e 100644 (file)
@@ -158,14 +158,12 @@ libvlc_int_t * libvlc_InternalCreate( void )
     /* Now that the thread system is initialized, we don't have much, but
      * at least we have variables */
     vlc_mutex_t *lock = var_AcquireMutex( "libvlc" );
-    if( !p_libvlc_global->b_ready )
+    if( i_instances == 0 )
     {
         /* Guess what CPU we have */
         cpu_flags = CPUCapabilities();
        /* The module bank will be initialized later */
         p_libvlc_global->p_module_bank = NULL;
-
-        p_libvlc_global->b_ready = true;
     }
 
     /* Allocate a libvlc instance object */