mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-12-17 13:34:20 +01:00
Disable FPS counter when no video playback
There is no frame rate to count.
This commit is contained in:
@@ -2811,6 +2811,11 @@ parse_args_with_getopt(struct scrcpy_cli_args *args, int argc, char *argv[],
|
|||||||
}
|
}
|
||||||
# endif
|
# 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) {
|
if (otg) {
|
||||||
// OTG mode is compatible with only very few options.
|
// OTG mode is compatible with only very few options.
|
||||||
// Only report obvious errors.
|
// Only report obvious errors.
|
||||||
|
|||||||
Reference in New Issue
Block a user