From c138ff41289317b707f9e1935119019b373ad458 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sat, 15 Sep 2007 16:46:13 +0000 Subject: [PATCH] ETIMEDOUT is perfectly expected here, do not complain about it --- include/vlc_threads_funcs.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/vlc_threads_funcs.h b/include/vlc_threads_funcs.h index 5db98befbf..1e76778222 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); -- GitLab