Message ID | 20200624145256.48266-14-paul.elder@ideasonboard.com |
---|---|
State | Accepted |
Headers | show |
Series |
|
Related | show |
diff --git a/src/v4l2/v4l2_camera_proxy.cpp b/src/v4l2/v4l2_camera_proxy.cpp index b027f8f..f8e8d79 100644 --- a/src/v4l2/v4l2_camera_proxy.cpp +++ b/src/v4l2/v4l2_camera_proxy.cpp @@ -582,6 +582,9 @@ int V4L2CameraProxy::vidioc_dqbuf(V4L2CameraFile *file, struct v4l2_buffer *arg) if (!hasOwnership(file)) return -EBUSY; + if (!vcam_->isRunning()) + return -EINVAL; + if (!validateBufferType(arg->type) || !validateMemoryType(arg->memory)) return -EINVAL;