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:
@@ -279,7 +279,7 @@ SizeRange StreamFormats::range(const PixelFormat &pixelformat) const
|
||||
* handlers provide StreamFormats.
|
||||
*/
|
||||
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
|
||||
*/
|
||||
StreamConfiguration::StreamConfiguration(const StreamFormats &formats)
|
||||
: pixelFormat(0), stream_(nullptr), formats_(formats)
|
||||
: pixelFormat(0), stride(0), bufferCount(0), stream_(nullptr),
|
||||
formats_(formats)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user