Skip to content

Display and control your Android device

Remove unnecessary variable

Romain Vimont58ea238fb2c5
diff --git a/app/src/scrcpy.c b/app/src/scrcpy.c
index 2efc043a..c7033a26 100644
--- a/app/src/scrcpy.c
+++ b/app/src/scrcpy.c
@@ -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,