cam: capture: Cache the EventLoop handler

Prepare for the ability to exit the event loop based on conditions in
the request complete handler by caching the pointer instead of passing
it as an argument.

Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Niklas Söderlund 2020-07-24 15:16:57 +02:00
parent 01ea694003
commit ed73469335
3 changed files with 15 additions and 12 deletions

View file

@ -341,8 +341,8 @@ int CamApp::run()
}
if (options_.isSet(OptCapture)) {
Capture capture(camera_, config_.get());
return capture.run(loop_, options_);
Capture capture(camera_, config_.get(), loop_);
return capture.run(options_);
}
return 0;