[PATCH] libcamera: software_isp: Clear frameContexts on Stop()

Robert Mader robert.mader at collabora.com
Sun Oct 13 14:04:50 CEST 2024


Like the hardware pipelines do. Otherwise we might hit the following
assert: "Frame context for ... has been overwritten by ...".

Fixes: 04d171e6 ("libcamera: software_isp: Call Algorithm::queueRequest")
Signed-off-by: Robert Mader <robert.mader at collabora.com>
---
 src/ipa/simple/soft_simple.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/ipa/simple/soft_simple.cpp b/src/ipa/simple/soft_simple.cpp
index b28c7039..ac8847cb 100644
--- a/src/ipa/simple/soft_simple.cpp
+++ b/src/ipa/simple/soft_simple.cpp
@@ -245,6 +245,7 @@ int IPASoftSimple::start()
 
 void IPASoftSimple::stop()
 {
+  context_.frameContexts.clear();
 }
 
 void IPASoftSimple::queueRequest(const uint32_t frame, const ControlList &controls)
-- 
2.47.0



More information about the libcamera-devel mailing list