Commit 9c87bdf6 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove p_root->b_ready. Duplicated state.

parent 6d0788dc
...@@ -158,14 +158,12 @@ libvlc_int_t * libvlc_InternalCreate( void ) ...@@ -158,14 +158,12 @@ libvlc_int_t * libvlc_InternalCreate( void )
/* Now that the thread system is initialized, we don't have much, but /* Now that the thread system is initialized, we don't have much, but
* at least we have variables */ * at least we have variables */
vlc_mutex_t *lock = var_AcquireMutex( "libvlc" ); vlc_mutex_t *lock = var_AcquireMutex( "libvlc" );
if( !p_libvlc_global->b_ready ) if( i_instances == 0 )
{ {
/* Guess what CPU we have */ /* Guess what CPU we have */
cpu_flags = CPUCapabilities(); cpu_flags = CPUCapabilities();
/* The module bank will be initialized later */ /* The module bank will be initialized later */
p_libvlc_global->p_module_bank = NULL; p_libvlc_global->p_module_bank = NULL;
p_libvlc_global->b_ready = true;
} }
/* Allocate a libvlc instance object */ /* Allocate a libvlc instance object */
......
...@@ -109,8 +109,6 @@ struct libvlc_global_data_t ...@@ -109,8 +109,6 @@ struct libvlc_global_data_t
{ {
VLC_COMMON_MEMBERS VLC_COMMON_MEMBERS
bool b_ready; ///< Initialization boolean
/* Object structure data */ /* Object structure data */
int i_counter; ///< object counter int i_counter; ///< object counter
int i_objects; ///< Attached objects count int i_objects; ///< Attached objects count
......
...@@ -151,7 +151,6 @@ int vlc_threads_init( void ) ...@@ -151,7 +151,6 @@ int vlc_threads_init( void )
} }
/* We should be safe now. Do all the initialization stuff we want. */ /* 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 ); vlc_threadvar_create( p_root, &msg_context_global_key );
} }
i_initializations++; i_initializations++;
......
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