libcamera: pipeline: Use existing variable definitions
Prevent variable shadowing by removing the redeclaration of variables with the same name (and type) where the existing variable can be reused. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
@@ -1008,7 +1008,7 @@ int PipelineHandlerRPi::queueAllBuffers(Camera *camera)
|
||||
*/
|
||||
unsigned int i;
|
||||
for (i = 0; i < data->dropFrameCount_; i++) {
|
||||
int ret = stream->queueBuffer(nullptr);
|
||||
ret = stream->queueBuffer(nullptr);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -612,8 +612,8 @@ int SimplePipelineHandler::configure(Camera *camera, CameraConfiguration *c)
|
||||
useConverter_ = config->needConversion();
|
||||
|
||||
if (useConverter_) {
|
||||
int ret = converter_->configure(pipeConfig.pixelFormat,
|
||||
pipeConfig.captureSize, &cfg);
|
||||
ret = converter_->configure(pipeConfig.pixelFormat,
|
||||
pipeConfig.captureSize, &cfg);
|
||||
if (ret < 0) {
|
||||
LOG(SimplePipeline, Error)
|
||||
<< "Unable to configure converter";
|
||||
|
||||
Reference in New Issue
Block a user