From 12e7640ee4a244ac96bb020e50ba16112b572054 Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Sat, 6 Sep 2008 16:52:20 +0200 Subject: [PATCH] Fixed vlc_cond_wait for windows. Thanks Courmisch for pointing it. --- include/vlc_threads.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/vlc_threads.h b/include/vlc_threads.h index 771f33232c..3afadfadf4 100644 --- a/include/vlc_threads.h +++ b/include/vlc_threads.h @@ -392,12 +392,12 @@ static inline void __vlc_cond_wait( const char * psz_file, int i_line, { vlc_testcancel (); result = SignalObjectAndWait (*p_mutex, *p_condvar, INFINITE, TRUE); - - /* Reacquire the mutex before returning. */ - vlc_mutex_lock( p_mutex ); } while (result == WAIT_IO_COMPLETION); + /* Reacquire the mutex before returning. */ + vlc_mutex_lock( p_mutex ); + vlc_testcancel (); (void)psz_file; (void)i_line; -- 2.39.5