summaryrefslogtreecommitdiff
path: root/src/cam
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-07-23 07:02:25 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-07-23 18:40:48 +0300
commit951df850ad700327d733f0934225e863141663e7 (patch)
tree2a4ed5cc1bb59fe59898c432201fb4e822b74afd /src/cam
parente0704e97ea8907b13c769e0d2958829f94e65a96 (diff)
cam: Initialize CamApp::loopUsers_
The CamApp loopUsers_ member variable isn't initialized, which results in random execution of the event loop. Fix it. Fixes: caa6ffacb2fc ("cam: Reorganize run() function and merge the two event loops") Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Tested-by: Umang Jain <umang.jain@ideasonboard.com>
Diffstat (limited to 'src/cam')
-rw-r--r--src/cam/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cam/main.cpp b/src/cam/main.cpp
index f9a90672..34cbc322 100644
--- a/src/cam/main.cpp
+++ b/src/cam/main.cpp
@@ -56,6 +56,7 @@ private:
CamApp *CamApp::app_ = nullptr;
CamApp::CamApp()
+ : loopUsers_(0)
{
CamApp::app_ = this;
}