From f46758d1c5ccef668435d712958a6c5acfb1c44c Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Wed, 24 May 2023 20:36:27 +0200 Subject: [PATCH] Fix V4L2 error message when disabled For consistency, use the same error message for --v4l2-sink and --v4l2-buffer. --- app/src/cli.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/cli.c b/app/src/cli.c index 60a007e9..10565da9 100644 --- a/app/src/cli.c +++ b/app/src/cli.c @@ -1871,7 +1871,8 @@ parse_args_with_getopt(struct scrcpy_cli_args *args, int argc, char *argv[], } break; #else - LOGE("V4L2 (--v4l2-buffer) is only available on Linux."); + LOGE("V4L2 (--v4l2-buffer) is disabled (or unsupported on this " + "platform)."); return false; #endif case OPT_LIST_ENCODERS: