[RFC,09/12] libcamera: Don't wait for input streams to complete
diff mbox series

Message ID 20250827090739.86955-10-david.plowman@raspberrypi.com
State New
Headers show
Series
  • Bayer Re-Processing
Related show

Commit Message

David Plowman Aug. 27, 2025, 9:07 a.m. UTC
Don't add buffers corresponding to input streams to the "pending"
list. These buffers don't "complete" in the normal way, which would
stop a request from ever completing.

Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
---
 src/libcamera/request.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/src/libcamera/request.cpp b/src/libcamera/request.cpp
index 7f1e11e8..11de57d6 100644
--- a/src/libcamera/request.cpp
+++ b/src/libcamera/request.cpp
@@ -491,7 +491,9 @@  int Request::addBuffer(const Stream *stream, FrameBuffer *buffer,
 	}
 
 	buffer->_d()->setRequest(this);
-	_d()->pending_.insert(buffer);
+	/* Don't want to wait for input buffers as they don't "complete". */
+	if (!stream->configuration().isInput())
+		_d()->pending_.insert(buffer);
 
 	if (fence && fence->isValid())
 		buffer->_d()->setFence(std::move(fence));