Fix fps_counter tick type

The type uint32_t is not sufficient to store the result of
sc_tick_now().

As a consequence, the FPS counter entered a live loop and caused a lock
starvation (deadlock in practice).

Refs ec871dd3f5
Refs 682a691173
This commit is contained in:
Romain Vimont 2022-02-16 18:11:40 +01:00
parent ccbe370cc5
commit 2a872c3865

View file

@ -57,7 +57,7 @@ display_fps(struct fps_counter *counter) {
// must be called with mutex locked
static void
check_interval_expired(struct fps_counter *counter, uint32_t now) {
check_interval_expired(struct fps_counter *counter, sc_tick now) {
if (now < counter->next_timestamp) {
return;
}