diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libcamera/stream.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libcamera/stream.cpp b/src/libcamera/stream.cpp index de505d12..c28b4cd6 100644 --- a/src/libcamera/stream.cpp +++ b/src/libcamera/stream.cpp @@ -289,7 +289,7 @@ SizeRange StreamFormats::range(unsigned int pixelformat) const * handlers provied StreamFormats. */ StreamConfiguration::StreamConfiguration() - : memoryType(InternalMemory), stream_(nullptr) + : pixelFormat(0), memoryType(InternalMemory), stream_(nullptr) { } @@ -297,7 +297,8 @@ StreamConfiguration::StreamConfiguration() * \brief Construct a configuration with stream formats */ StreamConfiguration::StreamConfiguration(const StreamFormats &formats) - : memoryType(InternalMemory), stream_(nullptr), formats_(formats) + : pixelFormat(0), memoryType(InternalMemory), stream_(nullptr), + formats_(formats) { } |