Commit 12e7640e authored by Laurent Aimar's avatar Laurent Aimar

Fixed vlc_cond_wait for windows.

Thanks Courmisch for pointing it.
parent ab50befa
...@@ -392,12 +392,12 @@ static inline void __vlc_cond_wait( const char * psz_file, int i_line, ...@@ -392,12 +392,12 @@ static inline void __vlc_cond_wait( const char * psz_file, int i_line,
{ {
vlc_testcancel (); vlc_testcancel ();
result = SignalObjectAndWait (*p_mutex, *p_condvar, INFINITE, TRUE); result = SignalObjectAndWait (*p_mutex, *p_condvar, INFINITE, TRUE);
/* Reacquire the mutex before returning. */
vlc_mutex_lock( p_mutex );
} }
while (result == WAIT_IO_COMPLETION); while (result == WAIT_IO_COMPLETION);
/* Reacquire the mutex before returning. */
vlc_mutex_lock( p_mutex );
vlc_testcancel (); vlc_testcancel ();
(void)psz_file; (void)i_line; (void)psz_file; (void)i_line;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment