mirror of
https://github.com/Genymobile/scrcpy
synced 2025-01-29 19:52:49 +00:00
Remove unnecessary variable
Test directly if a record filename is provided, without an intermediate boolean variable.
This commit is contained in:
parent
13c4aa1a3b
commit
58ea238fb2
@ -295,7 +295,6 @@ scrcpy(struct scrcpy_options *options) {
|
||||
bool controller_started = false;
|
||||
bool screen_initialized = false;
|
||||
|
||||
bool record = !!options->record_filename;
|
||||
struct server_params params = {
|
||||
.serial = options->serial,
|
||||
.log_level = options->log_level,
|
||||
@ -358,7 +357,7 @@ scrcpy(struct scrcpy_options *options) {
|
||||
}
|
||||
|
||||
struct recorder *rec = NULL;
|
||||
if (record) {
|
||||
if (options->record_filename) {
|
||||
if (!recorder_init(&s->recorder,
|
||||
options->record_filename,
|
||||
options->record_format,
|
||||
|
Loading…
Reference in New Issue
Block a user