deps-libff: Only sleep if the timed wait didn't expire

This commit is contained in:
John Bradley
2015-03-19 11:55:43 -05:00
parent de574e99e3
commit d9fe44f021
+1 -1
View File
@@ -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));