Pass serial within struct server_params

This was the only option passed separately.
This commit is contained in:
Romain Vimont
2021-05-17 09:41:22 +02:00
parent 6adc97198b
commit 4c31911df2
3 changed files with 8 additions and 8 deletions

View File

@@ -256,6 +256,7 @@ scrcpy(const struct scrcpy_options *options) {
bool record = !!options->record_filename;
struct server_params params = {
.serial = options->serial,
.log_level = options->log_level,
.crop = options->crop,
.port_range = options->port_range,
@@ -272,7 +273,7 @@ scrcpy(const struct scrcpy_options *options) {
.force_adb_forward = options->force_adb_forward,
.power_off_on_close = options->power_off_on_close,
};
if (!server_start(&server, options->serial, &params)) {
if (!server_start(&server, &params)) {
goto end;
}