summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/control_serializer.cpp5
-rw-r--r--src/libcamera/include/control_serializer.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/libcamera/control_serializer.cpp b/src/libcamera/control_serializer.cpp
index b787655e..a5d6d875 100644
--- a/src/libcamera/control_serializer.cpp
+++ b/src/libcamera/control_serializer.cpp
@@ -84,6 +84,11 @@ static constexpr size_t ControlValueSize[] = {
* proceed with care to avoid stale references.
*/
+ControlSerializer::ControlSerializer()
+ : serial_(0)
+{
+}
+
/**
* \brief Reset the serializer
*
diff --git a/src/libcamera/include/control_serializer.h b/src/libcamera/include/control_serializer.h
index bb3cb8e7..55259913 100644
--- a/src/libcamera/include/control_serializer.h
+++ b/src/libcamera/include/control_serializer.h
@@ -20,6 +20,8 @@ class ByteStreamBuffer;
class ControlSerializer
{
public:
+ ControlSerializer();
+
void reset();
static size_t binarySize(const ControlInfoMap &info);