libcamera: v4l2_videodevice: Fix uninitialised watchdogDuration_
Initialise the watchdogDuration_ member to 0ms before it is used
in rest of the code base. Failing to do so, spews out log warnings
regarding dequeue timer being expired.
Fixes: 16f3d2de50 ("libcamera: v4l2_videodevice: Add a dequeue timer")
Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Naushir Patuck <naush@raspberrypi.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
committed by
Laurent Pinchart
parent
e2d00fbcbb
commit
85204b4b44
@@ -520,7 +520,8 @@ const std::string V4L2DeviceFormat::toString() const
|
||||
*/
|
||||
V4L2VideoDevice::V4L2VideoDevice(const std::string &deviceNode)
|
||||
: V4L2Device(deviceNode), formatInfo_(nullptr), cache_(nullptr),
|
||||
fdBufferNotifier_(nullptr), state_(State::Stopped)
|
||||
fdBufferNotifier_(nullptr), state_(State::Stopped),
|
||||
watchdogDuration_(0.0)
|
||||
{
|
||||
/*
|
||||
* We default to an MMAP based CAPTURE video device, however this will
|
||||
|
||||
Reference in New Issue
Block a user