[PATCH] libcamera: Make FrameBuffer status default to FrameSuccess

Harvey Yang chenghaoyang at chromium.org
Mon Aug 26 15:46:30 CEST 2024


From: Han-Lin Chen <hanlinchen at chromium.org>

There seems to be an assumption that a FrameBuffer is success unless
the pipeline handler canceled the frame, or there is a failure
processing the FrameBuffer.

Make the assumption specific.

Signed-off-by: Han-Lin Chen <hanlinchen at chromium.org>
---
 include/libcamera/framebuffer.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/libcamera/framebuffer.h b/include/libcamera/framebuffer.h
index 5ae2270b3..71202a1d2 100644
--- a/include/libcamera/framebuffer.h
+++ b/include/libcamera/framebuffer.h
@@ -33,7 +33,7 @@ struct FrameMetadata {
 		unsigned int bytesused;
 	};
 
-	Status status;
+	Status status = FrameSuccess;
 	unsigned int sequence;
 	uint64_t timestamp;
 
-- 
2.46.0.295.g3b9ea8a38a-goog



More information about the libcamera-devel mailing list