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>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user