summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/android/camera_metadata.cpp5
-rw-r--r--src/android/camera_metadata.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/android/camera_metadata.cpp b/src/android/camera_metadata.cpp
index 47b2e4ef..ea33e9c2 100644
--- a/src/android/camera_metadata.cpp
+++ b/src/android/camera_metadata.cpp
@@ -50,3 +50,8 @@ camera_metadata_t *CameraMetadata::get()
{
return valid_ ? metadata_ : nullptr;
}
+
+const camera_metadata_t *CameraMetadata::get() const
+{
+ return valid_ ? metadata_ : nullptr;
+}
diff --git a/src/android/camera_metadata.h b/src/android/camera_metadata.h
index 348a0181..f16dd27b 100644
--- a/src/android/camera_metadata.h
+++ b/src/android/camera_metadata.h
@@ -21,6 +21,7 @@ public:
bool addEntry(uint32_t tag, const void *data, size_t data_count);
camera_metadata_t *get();
+ const camera_metadata_t *get() const;
private:
camera_metadata_t *metadata_;