libcamera: stream: Initialize stride and bufferCount

The two public unsigned integer fields of StreamConfiguration, stride
and bufferCount where not initialized, fix this to match other members
being initialized to their 'zero' state.

Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Niklas Söderlund 2020-06-01 22:53:24 +02:00
parent 846e7d999a
commit 72b9b7d3f3

View file

@ -279,7 +279,7 @@ SizeRange StreamFormats::range(const PixelFormat &pixelformat) const
* handlers provide StreamFormats. * handlers provide StreamFormats.
*/ */
StreamConfiguration::StreamConfiguration() StreamConfiguration::StreamConfiguration()
: pixelFormat(0), stream_(nullptr) : pixelFormat(0), stride(0), bufferCount(0), stream_(nullptr)
{ {
} }
@ -287,7 +287,8 @@ StreamConfiguration::StreamConfiguration()
* \brief Construct a configuration with stream formats * \brief Construct a configuration with stream formats
*/ */
StreamConfiguration::StreamConfiguration(const StreamFormats &formats) StreamConfiguration::StreamConfiguration(const StreamFormats &formats)
: pixelFormat(0), stream_(nullptr), formats_(formats) : pixelFormat(0), stride(0), bufferCount(0), stream_(nullptr),
formats_(formats)
{ {
} }