serial in server_params

This commit is contained in:
Romain Vimont
2021-05-02 17:21:57 +02:00
parent 52f5c6d4c1
commit 6e8df74c41
3 changed files with 20 additions and 26 deletions

View File

@@ -259,6 +259,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,
@@ -280,7 +281,7 @@ scrcpy(const struct scrcpy_options *options) {
return false;
}
if (!server_start(&server, options->serial)) {
if (!server_start(&server)) {
goto end;
}
@@ -312,7 +313,7 @@ scrcpy(const struct scrcpy_options *options) {
fps_counter_initialized = true;
if (options->control) {
if (!file_handler_init(&file_handler, server.serial,
if (!file_handler_init(&file_handler, options->serial,
options->push_target)) {
goto end;
}