pipeline: rkisp1: Fix scope of dewarper stop() exit action
Move the definition of the dewarper stop() action into the scope were
the corresponding start() happens.
Fixes: 12b553d691 ("libcamera: rkisp1: Plumb the dw100 dewarper as V4L2M2M converter")
Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
This commit is contained in:
@@ -1044,8 +1044,8 @@ int PipelineHandlerRkISP1::start(Camera *camera, [[maybe_unused]] const ControlL
|
||||
LOG(RkISP1, Error) << "Failed to start dewarper";
|
||||
return ret;
|
||||
}
|
||||
actions += [&]() { dewarper_->stop(); };
|
||||
}
|
||||
actions += [&]() { dewarper_->stop(); };
|
||||
}
|
||||
|
||||
if (data->mainPath_->isEnabled()) {
|
||||
|
||||
Reference in New Issue
Block a user