From 1c9dc0fd89cfb32d31e25c4d14501c891d329307 Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Mon, 2 May 2022 16:42:49 +0200 Subject: libcamera: v4l2_videodevice: Identify non-zero stream starts V4L2 Video devices should always start streaming from index zero. Identify and report a warning if they don't, and correct for any offset. Reviewed-by: Jacopo Mondi Reviewed-by: Laurent Pinchart Signed-off-by: Kieran Bingham --- include/libcamera/internal/v4l2_videodevice.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/libcamera/internal/v4l2_videodevice.h') diff --git a/include/libcamera/internal/v4l2_videodevice.h b/include/libcamera/internal/v4l2_videodevice.h index 23f37f83..8525acbc 100644 --- a/include/libcamera/internal/v4l2_videodevice.h +++ b/include/libcamera/internal/v4l2_videodevice.h @@ -276,6 +276,7 @@ private: EventNotifier *fdBufferNotifier_; State state_; + std::optional firstFrame_; Timer watchdog_; utils::Duration watchdogDuration_; -- cgit v1.2.1