block_FifoWake (deprecated): wake-up _all_ threads, not just one
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Wed, 22 Oct 2008 20:09:27 +0000 (23:09 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Wed, 22 Oct 2008 20:09:27 +0000 (23:09 +0300)
src/misc/block.c

index 380e822..71badca 100644 (file)
@@ -431,7 +431,7 @@ void block_FifoWake( block_fifo_t *p_fifo )
     vlc_mutex_lock( &p_fifo->lock );
     if( p_fifo->p_first == NULL )
         p_fifo->b_force_wake = true;
-    vlc_cond_signal( &p_fifo->wait );
+    vlc_cond_broadcast( &p_fifo->wait );
     vlc_mutex_unlock( &p_fifo->lock );
 }