Make camera id optional
If no camera id is provided, use the first camera available.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user