mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 22:20:01 +08:00
v4l2_cap: fix reqbuf return error when set count = 0.
Return success when reqbuf count is zero. Signed-off-by: yaojingwei <yaojingwei@xiaomi.com>
This commit is contained in:
@@ -2180,6 +2180,11 @@ static int capture_reqbufs(FAR struct file *filep,
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (reqbufs->count == 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
imgdata = cmng->imgdata;
|
||||
type_inf = get_capture_type_inf(cmng, reqbufs->type);
|
||||
if (type_inf == NULL)
|
||||
|
||||
Reference in New Issue
Block a user