diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libcamera/buffer.cpp | 3 | ||||
-rw-r--r-- | src/libcamera/camera.cpp | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libcamera/buffer.cpp b/src/libcamera/buffer.cpp index d86278a8..c0a02094 100644 --- a/src/libcamera/buffer.cpp +++ b/src/libcamera/buffer.cpp @@ -311,6 +311,9 @@ void BufferPool::createBuffers(unsigned int count) /** * \brief Release all buffers from pool + * + * If no buffers have been created or if buffers have already been released no + * operation is performed. */ void BufferPool::destroyBuffers() { diff --git a/src/libcamera/camera.cpp b/src/libcamera/camera.cpp index 094f1b63..810cb129 100644 --- a/src/libcamera/camera.cpp +++ b/src/libcamera/camera.cpp @@ -740,9 +740,6 @@ int Camera::freeBuffers() return -EACCES; for (Stream *stream : activeStreams_) { - if (!stream->bufferPool().count()) - continue; - /* * All mappings must be destroyed before buffers can be freed * by the V4L2 device that has allocated them. |