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 8e36e758..6f1bcdbe 100644
--- a/src/android/camera_metadata.cpp
+++ b/src/android/camera_metadata.cpp
@@ -13,6 +13,11 @@ using namespace libcamera;
LOG_DEFINE_CATEGORY(CameraMetadata)
+CameraMetadata::CameraMetadata()
+ : metadata_(nullptr), valid_(false)
+{
+}
+
CameraMetadata::CameraMetadata(size_t entryCapacity, size_t dataCapacity)
{
metadata_ = allocate_camera_metadata(entryCapacity, dataCapacity);
diff --git a/src/android/camera_metadata.h b/src/android/camera_metadata.h
index 720b760d..d653e2f0 100644
--- a/src/android/camera_metadata.h
+++ b/src/android/camera_metadata.h
@@ -14,6 +14,7 @@
class CameraMetadata
{
public:
+ CameraMetadata();
CameraMetadata(size_t entryCapacity, size_t dataCapacity);
CameraMetadata(const camera_metadata_t *metadata);
CameraMetadata(const CameraMetadata &other);