From a9de53f0cb025a842ff0c46f1fb7251107ba50b1 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Mon, 2 Feb 2026 22:35:05 +0100 Subject: [PATCH] Fix file drop handling with --no-video The "file pusher" can be used when a window is present, but it was only initialized when video playback was enabled, causing a segfault on file drop when running without video playback. --- app/src/scrcpy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/scrcpy.c b/app/src/scrcpy.c index acf8d475..cd6f9a16 100644 --- a/app/src/scrcpy.c +++ b/app/src/scrcpy.c @@ -564,7 +564,7 @@ scrcpy(struct scrcpy_options *options) { struct sc_file_pusher *fp = NULL; - if (options->video_playback && options->control) { + if (options->window && options->control) { if (!sc_file_pusher_init(&s->file_pusher, serial, options->push_target)) { goto end;