mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-17 17:35:06 +03:00
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:
parent
94d828d880
commit
453583e189
3 changed files with 9 additions and 10 deletions
|
@ -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_);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue