summaryrefslogtreecommitdiff
path: root/include/libcamera/internal
diff options
context:
space:
mode:
Diffstat (limited to 'include/libcamera/internal')
-rw-r--r--include/libcamera/internal/v4l2_videodevice.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/libcamera/internal/v4l2_videodevice.h b/include/libcamera/internal/v4l2_videodevice.h
index 2d2ccc47..d7a81e08 100644
--- a/include/libcamera/internal/v4l2_videodevice.h
+++ b/include/libcamera/internal/v4l2_videodevice.h
@@ -225,6 +225,12 @@ protected:
private:
LIBCAMERA_DISABLE_COPY(V4L2VideoDevice)
+ enum class State {
+ Streaming,
+ Stopping,
+ Stopped,
+ };
+
int getFormatMeta(V4L2DeviceFormat *format);
int trySetFormatMeta(V4L2DeviceFormat *format, bool set);
@@ -258,7 +264,7 @@ private:
EventNotifier *fdBufferNotifier_;
- bool streaming_;
+ State state_;
};
class V4L2M2MDevice