block_FifoShow: fix condition variable usage
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Tue, 6 Jan 2009 10:19:38 +0000 (12:19 +0200)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Tue, 6 Jan 2009 10:19:38 +0000 (12:19 +0200)
src/misc/block.c

index 024293b..1c68a3f 100644 (file)
@@ -526,7 +526,7 @@ block_t *block_FifoShow( block_fifo_t *p_fifo )
     vlc_mutex_lock( &p_fifo->lock );
     mutex_cleanup_push( &p_fifo->lock );
 
-    if( p_fifo->p_first == NULL )
+    while( p_fifo->p_first == NULL )
         vlc_cond_wait( &p_fifo->wait, &p_fifo->lock );
 
     b = p_fifo->p_first;