summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-03-15 00:37:17 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-03-18 19:15:18 +0200
commit7d8604128ab0f11da459fdb43fd8366620afe7f5 (patch)
tree83bb6a6acffc511c6f5e0d1dfc3b93114a84c63c /src
parent1e6eb88048260da43622387cb8a7ae4f8fd84532 (diff)
libcamera: camera: Propagate error value from importFrameBuffer
The PipelineHandler::importFrameBuffer() function, called by Camera::start() may return an error, but its return value is ignored. Propagate it to the caller to fix this. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/camera.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libcamera/camera.cpp b/src/libcamera/camera.cpp
index 63b1f772..9c432adb 100644
--- a/src/libcamera/camera.cpp
+++ b/src/libcamera/camera.cpp
@@ -931,8 +931,10 @@ int Camera::start()
if (allocator_ && !allocator_->buffers(stream).empty())
continue;
- p_->pipe_->invokeMethod(&PipelineHandler::importFrameBuffers,
- ConnectionTypeDirect, this, stream);
+ ret = p_->pipe_->invokeMethod(&PipelineHandler::importFrameBuffers,
+ ConnectionTypeDirect, this, stream);
+ if (ret < 0)
+ return ret;
}
ret = p_->pipe_->invokeMethod(&PipelineHandler::start,