mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-19 02:15:05 +03:00
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:
parent
01ea694003
commit
ed73469335
3 changed files with 15 additions and 12 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue