mirror of
https://github.com/Genymobile/scrcpy
synced 2025-08-30 05:48:26 +00:00
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 ec871dd3f596a8183e37982821645ac5a5791fe0 Refs 682a6911735cb8f6dccd9653ce30b72f267235c6
This commit is contained in:
parent
ccbe370cc5
commit
2a872c3865
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user