Commit f53f829a authored by Laurent Aimar's avatar Laurent Aimar

Fixed a potential race condition (projectm).

parent 4edd5ddb
...@@ -291,7 +291,6 @@ static void* Thread( vlc_object_t *p_this ) ...@@ -291,7 +291,6 @@ static void* Thread( vlc_object_t *p_this )
vlc_sem_post( &p_thread->ready ); vlc_sem_post( &p_thread->ready );
return NULL; return NULL;
} }
vlc_sem_post( &p_thread->ready );
/* Initialize the opengl provider for this thread */ /* Initialize the opengl provider for this thread */
p_thread->p_opengl->pf_init( p_thread->p_opengl ); p_thread->p_opengl->pf_init( p_thread->p_opengl );
...@@ -302,6 +301,8 @@ static void* Thread( vlc_object_t *p_this ) ...@@ -302,6 +301,8 @@ static void* Thread( vlc_object_t *p_this )
p_thread->p_buffer = (float*)malloc( p_thread->i_buffer_size * p_thread->p_buffer = (float*)malloc( p_thread->i_buffer_size *
sizeof( float ) ); sizeof( float ) );
vlc_sem_post( &p_thread->ready );
/* TODO: Give to projectm the name of the input /* TODO: Give to projectm the name of the input
p_thread->p_projectm->projectM_setTitle( "" ); */ p_thread->p_projectm->projectM_setTitle( "" ); */
......
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