cam: camera_session: Access event loop through global instance
Don't pass the event loop to the CameraSession constructor, as passing this global object explicitly isn't a design that can scale. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
+1
-1
@@ -363,7 +363,7 @@ int CamApp::run()
|
||||
}
|
||||
|
||||
if (options_.isSet(OptCapture)) {
|
||||
CameraSession session(camera_, config_.get(), &loop_);
|
||||
CameraSession session(camera_, config_.get());
|
||||
return session.run(options_);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user