From 502dcd58b74a29b6d5bb9fa938bcee4678d0c6e1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sun, 10 Aug 2008 15:16:23 +0300 Subject: [PATCH] Fix previous commit --- include/vlc_threads.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/vlc_threads.h b/include/vlc_threads.h index 675a8ead77..df7107e68e 100644 --- a/include/vlc_threads.h +++ b/include/vlc_threads.h @@ -397,11 +397,11 @@ static inline int __vlc_cond_timedwait( const char * psz_file, int i_line, result = SignalObjectAndWait( *p_mutex, *p_condvar, delay, FALSE ); total -= delay; + vlc_mutex_lock (p_mutex); } while (total); /* Reacquire the mutex before returning. */ - vlc_mutex_lock( p_mutex ); if(result == WAIT_TIMEOUT) return ETIMEDOUT; /* this error is perfectly normal */ -- 2.39.2