v4l2: v4l2_camera: Add isRunning()

Add a method isRunning() to V4L2Camera so that V4L2CameraProxy can use
it for checks.

Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Paul Elder 2020-06-18 17:24:37 +09:00
parent c857ae3c89
commit d45d53cde0
2 changed files with 7 additions and 0 deletions

View file

@ -227,3 +227,8 @@ int V4L2Camera::qbuf(unsigned int index)
return 0;
}
bool V4L2Camera::isRunning()
{
return isRunning_;
}

View file

@ -57,6 +57,8 @@ public:
int qbuf(unsigned int index);
bool isRunning();
Semaphore bufferSema_;
private: