diff --git a/include/vlc_threads_funcs.h b/include/vlc_threads_funcs.h index 5db98befbf2a4b8cfc48bc728e3e355ab1d85bdd..1e76778222298eb2fa53f6309969720fe961e4ca 100644 --- a/include/vlc_threads_funcs.h +++ b/include/vlc_threads_funcs.h @@ -580,8 +580,10 @@ static inline int __vlc_cond_timedwait( const char * psz_file, int i_line, struct timespec ts = { d.quot, d.rem * 1000 }; i_res = pthread_cond_timedwait( &p_condvar->cond, &p_mutex->mutex, &ts ); - - if ( i_res ) + if( i_res = ETIMEDOUT ) + i_res = 0; /* this error is perfectly normal */ + else + if ( i_res ) /* other errors = bug */ { i_thread = CAST_PTHREAD_TO_INT(pthread_self()); psz_error = strerror(i_res);