[vlc-devel] commit: block_FifoShow: fix condition variable usage ( Rémi Denis-Courmont )
git version control
git at videolan.org
Tue Jan 6 11:22:06 CET 2009
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Tue Jan 6 12:19:38 2009 +0200| [530585d11283626347daa78e393f75187fdc5063] | committer: Rémi Denis-Courmont
block_FifoShow: fix condition variable usage
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=530585d11283626347daa78e393f75187fdc5063
---
src/misc/block.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/misc/block.c b/src/misc/block.c
index 024293b..1c68a3f 100644
--- a/src/misc/block.c
+++ b/src/misc/block.c
@@ -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;
More information about the vlc-devel
mailing list