v4l2: v4l2_camera_proxy: noop if streamon when stream is already on
If VIDIOC_STREMAON is called when the stream is already on, do a noop. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
b3dc3d7cf2
commit
6a5d416b37
1 changed files with 3 additions and 0 deletions
|
@ -623,6 +623,9 @@ int V4L2CameraProxy::vidioc_streamon(V4L2CameraFile *file, int *arg)
|
||||||
if (!hasOwnership(file))
|
if (!hasOwnership(file))
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
|
||||||
|
if (vcam_->isRunning())
|
||||||
|
return 0;
|
||||||
|
|
||||||
currentBuf_ = 0;
|
currentBuf_ = 0;
|
||||||
|
|
||||||
return vcam_->streamOn();
|
return vcam_->streamOn();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue