mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-02-19 21:04:29 +01:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user