mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-12-18 14:04:20 +01:00
Disable server controller if --no-control
If --no-control is disabled, there is no need for a controller. It also avoids to power on the device on start if control is disabled.
This commit is contained in:
@@ -277,6 +277,7 @@ scrcpy(const struct scrcpy_options *options) {
|
||||
.max_size = options->max_size,
|
||||
.bit_rate = options->bit_rate,
|
||||
.send_frame_meta = record,
|
||||
.control = options->control,
|
||||
};
|
||||
if (!server_start(&server, options->serial, ¶ms)) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user