From 6b775ba1f907287a8bd2ffeb29d08663c87e31bd Mon Sep 17 00:00:00 2001 From: Martijn Braam Date: Mon, 9 Nov 2020 01:52:10 +0100 Subject: [PATCH] Disable camera switch button if only one camera exists --- main.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/main.c b/main.c index 7b4336f..4f71623 100644 --- a/main.c +++ b/main.c @@ -1598,6 +1598,16 @@ main(int argc, char *argv[]) goto failed; } + // Disable the camera switch button if only one camera exists + int camera_count = 0; + for (int i=0; i