summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/pipeline/ipu3/ipu3.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp
index 1bdad209..958d8362 100644
--- a/src/libcamera/pipeline/ipu3/ipu3.cpp
+++ b/src/libcamera/pipeline/ipu3/ipu3.cpp
@@ -874,10 +874,12 @@ void IPU3CameraData::cio2BufferReady(FrameBuffer *buffer)
* If the request contains a buffer for the RAW stream only, complete it
* now as there's no need for ImgU processing.
*/
- if (request->findBuffer(&rawStream_) &&
- pipe_->completeBuffer(camera_, request, buffer)) {
- pipe_->completeRequest(camera_, request);
- return;
+ if (request->findBuffer(&rawStream_)) {
+ bool isComplete = pipe_->completeBuffer(camera_, request, buffer);
+ if (isComplete) {
+ pipe_->completeRequest(camera_, request);
+ return;
+ }
}
imgu_->input_->queueBuffer(buffer);