summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVedant Paranjape <vedantparanjape160201@gmail.com>2021-09-22 22:36:19 +0530
committerKieran Bingham <kieran.bingham@ideasonboard.com>2021-09-22 21:33:10 +0100
commit8d3d92ea81a1a5e52a27684aee3c4161d7dc96a7 (patch)
treeaef13cdf761627a30e0b655ed237ae8155fec3fa
parentf9ca897c7fe2846f0a2163563014ca02d3c1624a (diff)
gstreamer: Convert cm_singleton_ptr to static variable
The global pointer pointing to libcamera's CameraManager isn't used outside of the gstlibcamera-utils.cpp compilation unit. Make it static. Signed-off-by: Vedant Paranjape <vedantparanjape160201@gmail.com> Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rw-r--r--src/gstreamer/gstlibcamera-utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gstreamer/gstlibcamera-utils.cpp b/src/gstreamer/gstlibcamera-utils.cpp
index e1af30c8..cef5b03f 100644
--- a/src/gstreamer/gstlibcamera-utils.cpp
+++ b/src/gstreamer/gstlibcamera-utils.cpp
@@ -236,7 +236,7 @@ gst_libcamera_resume_task(GstTask *task)
}
G_LOCK_DEFINE_STATIC(cm_singleton_lock);
-std::weak_ptr<CameraManager> cm_singleton_ptr;
+static std::weak_ptr<CameraManager> cm_singleton_ptr;
std::shared_ptr<CameraManager>
gst_libcamera_get_camera_mananger(int &ret)