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:
parent
846e7d999a
commit
72b9b7d3f3
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue