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:
Jacopo Mondi 2019-04-17 15:40:34 +02:00
parent da341a4dd1
commit 7b7c8f06a0

View file

@ -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);
} }
/** /**