libcamera: v4l2_device: Propagate releaseBuffers() error
The error code returned by requestBuffers(0) was not propagated to the caller. Fix it. Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
da341a4dd1
commit
7b7c8f06a0
1 changed files with 1 additions and 2 deletions
|
@ -737,10 +737,9 @@ int V4L2Device::releaseBuffers()
|
||||||
{
|
{
|
||||||
LOG(V4L2, Debug) << "Releasing bufferPool";
|
LOG(V4L2, Debug) << "Releasing bufferPool";
|
||||||
|
|
||||||
requestBuffers(0);
|
|
||||||
bufferPool_ = nullptr;
|
bufferPool_ = nullptr;
|
||||||
|
|
||||||
return 0;
|
return requestBuffers(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue