From 2c3a16332de144594ba23b1ca9c37aeb06eded02 Mon Sep 17 00:00:00 2001 From: Martijn Braam Date: Wed, 12 Jul 2023 16:06:32 +0200 Subject: [PATCH] Ensure the capture terminates --- src/io_pipeline.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/io_pipeline.c b/src/io_pipeline.c index a873569..e5d7e81 100644 --- a/src/io_pipeline.c +++ b/src/io_pipeline.c @@ -156,6 +156,7 @@ capture(MPPipeline *pipeline, const void *data) gain = mp_camera_control_get_int32(io_camera, V4L2_CID_GAIN); // gain_norm = (float)gain / (float)mpcamera.gain_max; // burst_length = (int)fmax(sqrt(gain_norm) * 10, 2) + 1; + burst_length = MIN(1, burst_length); captures_remaining = burst_length; // Change camera mode for capturing