Initialize interrupted field explicitly
The field sc_fps_counter.interrupted was never initialized explicitly. Signed-off-by: Romain Vimont <rom@rom1v.com>
This commit is contained in:
parent
408f458636
commit
d93582724d
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue