From 18792b81cb122eb15cbda20bbcfe37d4bdb5c930 Mon Sep 17 00:00:00 2001 From: Stanislaw Gruszka Date: Thu, 3 Apr 2025 09:45:51 +0200 Subject: pipeline: simple: Reset delayedCtrls at start Similar like in other pipelines (IPU3, rpi) avoid using stale values of DelayedControls class when the same camera is started second time. Reviewed-by: Kieran Bingham Reviewed-by: Stefan Klug Co-developed-by: Hans de Goede Signed-off-by: Hans de Goede Signed-off-by: Stanislaw Gruszka Signed-off-by: Kieran Bingham --- src/libcamera/pipeline/simple/simple.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/libcamera/pipeline/simple/simple.cpp b/src/libcamera/pipeline/simple/simple.cpp index c873407a..efb07051 100644 --- a/src/libcamera/pipeline/simple/simple.cpp +++ b/src/libcamera/pipeline/simple/simple.cpp @@ -1462,6 +1462,7 @@ int SimplePipelineHandler::start(Camera *camera, [[maybe_unused]] const ControlL video->bufferReady.connect(data, &SimpleCameraData::imageBufferReady); + data->delayedCtrls_->reset(); if (frameStartEmitter) { ret = frameStartEmitter->setFrameStartEnabled(true); if (ret) { -- cgit v1.2.1