mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-03 22:58:51 +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_id = OPT_NO_WINDOW,
|
||||||
.longopt = "no-window",
|
.longopt = "no-window",
|
||||||
.text = "Disable scrcpy window. Implies --no-video-playback and "
|
.text = "Disable scrcpy window. Implies --no-video-playback",
|
||||||
"--no-control.",
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.longopt_id = OPT_ORIENTATION,
|
.longopt_id = OPT_ORIENTATION,
|
||||||
|
@ -2759,10 +2758,13 @@ parse_args_with_getopt(struct scrcpy_cli_args *args, int argc, char *argv[],
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!opts->window) {
|
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->video_playback = false;
|
||||||
|
// Without any other video output control doesn't make sense
|
||||||
|
if(!opts->record_filename && !v4l2){
|
||||||
opts->control = false;
|
opts->control = false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!opts->video) {
|
if (!opts->video) {
|
||||||
opts->video_playback = false;
|
opts->video_playback = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue