mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-04-20 03:25:03 +00:00
Only disable control for no-window if we also don't do any other video operations
This commit is contained in:
parent
0ba9d35705
commit
606c49b8e5
1 changed files with 6 additions and 4 deletions
|
@ -687,8 +687,7 @@ static const struct sc_option options[] = {
|
|||
{
|
||||
.longopt_id = OPT_NO_WINDOW,
|
||||
.longopt = "no-window",
|
||||
.text = "Disable scrcpy window. Implies --no-video-playback and "
|
||||
"--no-control.",
|
||||
.text = "Disable scrcpy window. Implies --no-video-playback",
|
||||
},
|
||||
{
|
||||
.longopt_id = OPT_ORIENTATION,
|
||||
|
@ -2759,9 +2758,12 @@ parse_args_with_getopt(struct scrcpy_cli_args *args, int argc, char *argv[],
|
|||
#endif
|
||||
|
||||
if (!opts->window) {
|
||||
// Without window, there cannot be any video playback or control
|
||||
// Without window, there cannot be any video playback
|
||||
opts->video_playback = false;
|
||||
opts->control = false;
|
||||
// Without any other video output control doesn't make sense
|
||||
if(!opts->record_filename && !v4l2){
|
||||
opts->control = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (!opts->video) {
|
||||
|
|
Loading…
Add table
Reference in a new issue