mirror of
https://github.com/Genymobile/scrcpy
synced 2025-08-31 14:25:56 +00:00
Move FPS counter start/stop logs
This will allow to print the same logs for every start/stop call. PR #3030 <https://github.com/Genymobile/scrcpy/pull/3030>
This commit is contained in:
@@ -247,13 +247,9 @@ switch_fps_counter_state(struct sc_fps_counter *fps_counter) {
|
||||
// is no ToCToU issue
|
||||
if (sc_fps_counter_is_started(fps_counter)) {
|
||||
sc_fps_counter_stop(fps_counter);
|
||||
LOGI("FPS counter stopped");
|
||||
} else {
|
||||
if (sc_fps_counter_start(fps_counter)) {
|
||||
LOGI("FPS counter started");
|
||||
} else {
|
||||
LOGE("FPS counter starting failed");
|
||||
}
|
||||
sc_fps_counter_start(fps_counter);
|
||||
// Any error is already logged
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user