[PATCH 5/7] libcamera: mali-c55: Simplify bufferReady()
Daniel Scally
dan.scally at ideasonboard.com
Thu Jun 13 17:59:47 CEST 2024
bufferReady() is needlessly complicated; simplify it.
Signed-off-by: Daniel Scally <dan.scally at ideasonboard.com>
---
src/libcamera/pipeline/mali-c55/mali-c55.cpp | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/src/libcamera/pipeline/mali-c55/mali-c55.cpp b/src/libcamera/pipeline/mali-c55/mali-c55.cpp
index 2b1d766a..910eac5e 100644
--- a/src/libcamera/pipeline/mali-c55/mali-c55.cpp
+++ b/src/libcamera/pipeline/mali-c55/mali-c55.cpp
@@ -1028,12 +1028,8 @@ void PipelineHandlerMaliC55::bufferReady(FrameBuffer *buffer)
{
Request *request = buffer->request();
- completeBuffer(request, buffer);
-
- if (request->hasPendingBuffers())
- return;
-
- completeRequest(request);
+ if (completeBuffer(request, buffer))
+ completeRequest(request);
}
void PipelineHandlerMaliC55::registerMaliCamera(std::unique_ptr<MaliC55CameraData> data,
--
2.30.2
More information about the libcamera-devel
mailing list