[vlc-devel] commit: Fixed a potential race condition (projectm). (Laurent Aimar )
git version control
git at videolan.org
Sun Dec 13 13:53:40 CET 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Dec 12 22:16:19 2009 +0100| [f53f829af50af5c24e019e999c9960b57976fffc] | committer: Laurent Aimar
Fixed a potential race condition (projectm).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f53f829af50af5c24e019e999c9960b57976fffc
---
modules/visualization/projectm.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/visualization/projectm.cpp b/modules/visualization/projectm.cpp
index 60452f1..a5b3a7e 100644
--- a/modules/visualization/projectm.cpp
+++ b/modules/visualization/projectm.cpp
@@ -291,7 +291,6 @@ static void* Thread( vlc_object_t *p_this )
vlc_sem_post( &p_thread->ready );
return NULL;
}
- vlc_sem_post( &p_thread->ready );
/* Initialize the opengl provider for this thread */
p_thread->p_opengl->pf_init( p_thread->p_opengl );
@@ -302,6 +301,8 @@ static void* Thread( vlc_object_t *p_this )
p_thread->p_buffer = (float*)malloc( p_thread->i_buffer_size *
sizeof( float ) );
+ vlc_sem_post( &p_thread->ready );
+
/* TODO: Give to projectm the name of the input
p_thread->p_projectm->projectM_setTitle( "" ); */
More information about the vlc-devel
mailing list