summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2021-04-13 23:44:29 +0200
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2021-04-14 16:13:18 +0200
commit6c96861ea36f0596fbf4440e457d9366e6855d19 (patch)
treee674a021709d852bb55fc9afdaea97ade50503fb /src
parent0373490ef64340ed42a21500b6f9a3575b890ba5 (diff)
lc-compliance: Initialize the event loop pointer
The event loop pointer loop_ was not initialized. This has no effect on the current code flow but could in the future lead to hard debug problems. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src')
-rw-r--r--src/lc-compliance/simple_capture.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lc-compliance/simple_capture.cpp b/src/lc-compliance/simple_capture.cpp
index 0ff720bf..8f714d3b 100644
--- a/src/lc-compliance/simple_capture.cpp
+++ b/src/lc-compliance/simple_capture.cpp
@@ -10,7 +10,8 @@
using namespace libcamera;
SimpleCapture::SimpleCapture(std::shared_ptr<Camera> camera)
- : camera_(camera), allocator_(std::make_unique<FrameBufferAllocator>(camera))
+ : loop_(nullptr), camera_(camera),
+ allocator_(std::make_unique<FrameBufferAllocator>(camera))
{
}