[vlc-devel] commit: Fixed vlc_cond_wait for windows. (Laurent Aimar )

git version control git at videolan.org
Sat Sep 6 16:51:14 CEST 2008


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Sep  6 16:52:20 2008 +0200| [12e7640ee4a244ac96bb020e50ba16112b572054] | committer: Laurent Aimar 

Fixed vlc_cond_wait for windows.

Thanks Courmisch for pointing it.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=12e7640ee4a244ac96bb020e50ba16112b572054
---

 include/vlc_threads.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/vlc_threads.h b/include/vlc_threads.h
index 771f332..3afadfa 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;




More information about the vlc-devel mailing list