summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2019-04-17 15:40:34 +0200
committerJacopo Mondi <jacopo@jmondi.org>2019-04-18 15:35:18 +0200
commit7b7c8f06a0a836ebeb77aadbd3a8f38754934526 (patch)
treed94d56ba3a05a37d8ff066ea9b71cc22541a36a7
parentda341a4dd146fe525d0e794e619c93dedd1a469c (diff)
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>
-rw-r--r--src/libcamera/v4l2_device.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libcamera/v4l2_device.cpp b/src/libcamera/v4l2_device.cpp
index 4cc4a6d6..d394632d 100644
--- a/src/libcamera/v4l2_device.cpp
+++ b/src/libcamera/v4l2_device.cpp
@@ -737,10 +737,9 @@ int V4L2Device::releaseBuffers()
{
LOG(V4L2, Debug) << "Releasing bufferPool";
- requestBuffers(0);
bufferPool_ = nullptr;
- return 0;
+ return requestBuffers(0);
}
/**