[08/11] libcamera: Don't wait for input streams to complete
diff mbox series

Message ID 20251210164055.17856-9-david.plowman@raspberrypi.com
State New
Headers show
Series
  • Bayer re-processing
Related show

Commit Message

David Plowman Dec. 10, 2025, 4:15 p.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 60565f59..1be5e6e5 100644
--- a/src/libcamera/request.cpp
+++ b/src/libcamera/request.cpp
@@ -493,7 +493,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));