summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2022-05-02 16:42:49 +0200
committerKieran Bingham <kieran.bingham@ideasonboard.com>2022-06-27 10:32:06 +0100
commit1c9dc0fd89cfb32d31e25c4d14501c891d329307 (patch)
treeef74b3507657560e375da02949f38be79a7115f9 /include
parent27cc0a6b58bcca32071cb6ab96e5ee79c75031e5 (diff)
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 <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/internal/v4l2_videodevice.h1
1 files changed, 1 insertions, 0 deletions
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<unsigned int> firstFrame_;
Timer watchdog_;
utils::Duration watchdogDuration_;