aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-11-03 08:34:01 +0000
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-11-03 08:34:01 +0000
commit8ac680eb35b2cbfbea5e7e084d33c7e46994d4f2 (patch)
treec9ce2ab4e7d003906aeaeef9e04a3efc93232752
parent5f891f982494a438d27aca31d9261136bf43ea21 (diff)
main: disable libv4l for USERPTRuserptr
The libv4l emulation doesn't support USERPTR. So, disable it, when this mode is used. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-rw-r--r--src/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index ea57394..8b31b6d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -144,6 +144,7 @@ static void activate(GtkApplication *app)
} else if (use_userptr) {
printf("Forcing userptr mode\n");
cam->userptr = TRUE;
+ cam->use_libv4l = FALSE;
}
cam->xml = gtk_builder_new();

Privacy Policy