deps/libff: Fix incorrect timer triggering (twice)

Sometimes the timer will be triggered twice in one request.  GIF files
can be rendered in wrong speed.

Closes jp9000/obs-studio#513
master
sorayuki 2016-02-25 18:33:41 +08:00 committed by jp9000
parent e3a9f395a6
commit 07ecdaf8d3
1 changed files with 3 additions and 0 deletions

View File

@ -51,6 +51,9 @@ static void *timer_thread(void *opaque)
- current_time));
}
pthread_mutex_unlock(&timer->mutex);
continue;
// we can be woken up merely to set a sooner wake time
} else {