summaryrefslogtreecommitdiff
path: root/src/cam/main.cpp
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-07-05 06:59:21 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-07-22 17:13:40 +0300
commit453583e189e01bbef321b9a50c0c435cc05fef63 (patch)
tree1aed1e3b07e9bb2e1273e3e42c7ef9d6df2394b0 /src/cam/main.cpp
parent94d828d880492617c936434a5ca93ee83366a31b (diff)
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>
Diffstat (limited to 'src/cam/main.cpp')
-rw-r--r--src/cam/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cam/main.cpp b/src/cam/main.cpp
index f71b65a2..90435206 100644
--- a/src/cam/main.cpp
+++ b/src/cam/main.cpp
@@ -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_);
}