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:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user