fix: default video buffers to 1

This commit is contained in:
2026-05-17 00:41:59 +02:00
parent 4837ab2786
commit 344029f195
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -196,7 +196,7 @@ options:
-nar, --no-auto-random do not randomize state (default)
-arc, --auto-random-cycle auto random cycle length (default: 4)
-vi, --video-in path to video capture device (multiple allowed)
-vb, --video-buffers number of video buffers to use (default: 2)
-vb, --video-buffers number of video buffers to use (default: 1)
-vs, --video-size video capture desired height (default: internal texture height)
-vr, --video-reconnect auto-reconnect video (default)
-nvr, --no-video-reconnect do not auto-reconnect video
+2 -2
View File
@@ -66,7 +66,7 @@ static void print_help(int status_code) {
" -vi, --video-in path to video capture device (multiple "
"allowed)\n"
" -vb, --video-buffers number of video buffers to use (default: "
"2)\n"
"1)\n"
" -vs, --video-size video capture desired height (default: "
"internal texture height)\n"
" -vr, --video-reconnect auto-reconnect video (default)\n"
@@ -141,7 +141,7 @@ void args_parse(Parameters *params, int argc, char **argv) {
params->auto_random_cycle = 4;
#ifdef VIDEO_IN
params->video_in.length = 0;
params->video_buffers = 2;
params->video_buffers = 1;
params->video_size = 0;
params->video_reconnect = true;
strlcpy(params->video_fourcc, "YUYV", 5);