Commit 502dcd58 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix previous commit

parent 81df45be
...@@ -397,11 +397,11 @@ static inline int __vlc_cond_timedwait( const char * psz_file, int i_line, ...@@ -397,11 +397,11 @@ static inline int __vlc_cond_timedwait( const char * psz_file, int i_line,
result = SignalObjectAndWait( *p_mutex, *p_condvar, result = SignalObjectAndWait( *p_mutex, *p_condvar,
delay, FALSE ); delay, FALSE );
total -= delay; total -= delay;
vlc_mutex_lock (p_mutex);
} }
while (total); while (total);
/* Reacquire the mutex before returning. */ /* Reacquire the mutex before returning. */
vlc_mutex_lock( p_mutex );
if(result == WAIT_TIMEOUT) if(result == WAIT_TIMEOUT)
return ETIMEDOUT; /* this error is perfectly normal */ return ETIMEDOUT; /* this error is perfectly normal */
......
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