mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00:00
Make camera id optional
If no camera id is provided, use the first camera available.
This commit is contained in:
parent
2bd4cb6d5d
commit
d129a97098
2 changed files with 20 additions and 7 deletions
|
|
@ -2205,12 +2205,6 @@ parse_args_with_getopt(struct scrcpy_cli_args *args, int argc, char *argv[],
|
|||
return false;
|
||||
}
|
||||
|
||||
if (!opts->camera_id) {
|
||||
LOGE("Camera id must be specified by --camera-id=ID "
|
||||
"(list the available ids with --list-cameras)");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!opts->camera_size) {
|
||||
LOGE("Camera size must be specified by --camera-size=WIDTHxHEIGHT");
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue