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:
Laurent Pinchart
2020-03-15 00:37:17 +02:00
parent 1e6eb88048
commit 7d8604128a

View File

@@ -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,