Skip to content

Commit

Permalink
Disable FPS counter when no video playback
Browse files Browse the repository at this point in the history
There is no frame rate to count.
  • Loading branch information
rom1v committed Apr 19, 2024
1 parent 22d78e8 commit cca2c9f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/src/cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -2811,6 +2811,11 @@ parse_args_with_getopt(struct scrcpy_cli_args *args, int argc, char *argv[],
}
# endif

if (opts->start_fps_counter && !opts->video_playback) {
LOGW("--print-fps has no effect without video playback");
opts->start_fps_counter = false;
}

if (otg) {
// OTG mode is compatible with only very few options.
// Only report obvious errors.
Expand Down

0 comments on commit cca2c9f

Please sign in to comment.