From d9fe44f021d486b8f55e08270ce52261fc27e811 Mon Sep 17 00:00:00 2001 From: John Bradley Date: Thu, 12 Mar 2015 15:09:38 -0500 Subject: [PATCH] deps-libff: Only sleep if the timed wait didn't expire --- deps/libff/libff/ff-timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/libff/libff/ff-timer.c b/deps/libff/libff/ff-timer.c index 804657102..e58493b25 100644 --- a/deps/libff/libff/ff-timer.c +++ b/deps/libff/libff/ff-timer.c @@ -44,7 +44,7 @@ static void *timer_thread(void *opaque) ret = pthread_cond_timedwait(&timer->cond, &timer->mutex, &sleep_time); - if (ret != 0) { + if (ret != ETIMEDOUT) { // failed to wait, just sleep av_usleep((unsigned)(timer->next_wake - current_time));