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:
Stefan Klug 2024-12-16 16:40:41 +01:00
parent e9a876acc6
commit 479e8c851c

View file

@ -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()) {