From d93582724ddb300044e0a3e0e7c728390da5762d Mon Sep 17 00:00:00 2001 From: "chengjian.scj" Date: Thu, 2 Mar 2023 17:57:13 +0800 Subject: [PATCH] Initialize interrupted field explicitly The field sc_fps_counter.interrupted was never initialized explicitly. Signed-off-by: Romain Vimont --- app/src/fps_counter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/fps_counter.c b/app/src/fps_counter.c index 85312821..dd4ae1da 100644 --- a/app/src/fps_counter.c +++ b/app/src/fps_counter.c @@ -96,6 +96,7 @@ run_fps_counter(void *data) { bool sc_fps_counter_start(struct sc_fps_counter *counter) { sc_mutex_lock(&counter->mutex); + counter->interrupted = false; counter->next_timestamp = sc_tick_now() + SC_FPS_COUNTER_INTERVAL; counter->nr_rendered = 0; counter->nr_skipped = 0;