mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00: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:
parent
c07500bb03
commit
a9de53f0cb
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue