mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-25 17:45:06 +03:00
libcamera: v4l2_videodevice: Track streaming state
Track the state of streamon/streamoff calls to simplify error paths. Ensuring that streamOff() can be called on non-streaming streams facilitates simpler error code paths, where a set of devices can all call streamOff regardless of their initialisation state. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Umang Jain <email@uajain.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
5988661c90
commit
c0bad607ce
2 changed files with 13 additions and 1 deletions
|
@ -249,6 +249,8 @@ private:
|
|||
std::map<unsigned int, FrameBuffer *> queuedBuffers_;
|
||||
|
||||
EventNotifier *fdBufferNotifier_;
|
||||
|
||||
bool streaming_;
|
||||
};
|
||||
|
||||
class V4L2M2MDevice
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue