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:
parent
c857ae3c89
commit
d45d53cde0
2 changed files with 7 additions and 0 deletions
|
@ -227,3 +227,8 @@ int V4L2Camera::qbuf(unsigned int index)
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool V4L2Camera::isRunning()
|
||||||
|
{
|
||||||
|
return isRunning_;
|
||||||
|
}
|
||||||
|
|
|
@ -57,6 +57,8 @@ public:
|
||||||
|
|
||||||
int qbuf(unsigned int index);
|
int qbuf(unsigned int index);
|
||||||
|
|
||||||
|
bool isRunning();
|
||||||
|
|
||||||
Semaphore bufferSema_;
|
Semaphore bufferSema_;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue