Fix V4L2 error message when disabled

For consistency, use the same error message for --v4l2-sink and
--v4l2-buffer.
This commit is contained in:
Romain Vimont 2023-05-24 20:36:27 +02:00
parent e71f5358b3
commit f46758d1c5

View file

@ -1871,7 +1871,8 @@ parse_args_with_getopt(struct scrcpy_cli_args *args, int argc, char *argv[],
} }
break; break;
#else #else
LOGE("V4L2 (--v4l2-buffer) is only available on Linux."); LOGE("V4L2 (--v4l2-buffer) is disabled (or unsupported on this "
"platform).");
return false; return false;
#endif #endif
case OPT_LIST_ENCODERS: case OPT_LIST_ENCODERS: