[libcamera-devel] [PATCH 12/30] libcamera: v4l2_videodevice: Remove assertion involving BufferPool

Niklas Söderlund niklas.soderlund at ragnatech.se
Wed Nov 27 00:36:02 CET 2019


The BufferPool class will be removed when the buffer logic is reworked.
During the transition some functions will be shared between the new and
old buffer code and removing this assert allows sharing of the
dequeueBuffer() function.

Signed-off-by: Niklas Söderlund <niklas.soderlund at ragnatech.se>
---
 src/libcamera/v4l2_videodevice.cpp | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/libcamera/v4l2_videodevice.cpp b/src/libcamera/v4l2_videodevice.cpp
index 7b6fa5347ef320f8..644e4545a2f33b2e 100644
--- a/src/libcamera/v4l2_videodevice.cpp
+++ b/src/libcamera/v4l2_videodevice.cpp
@@ -1100,7 +1100,6 @@ Buffer *V4L2VideoDevice::dequeueBuffer()
 		return nullptr;
 	}
 
-	ASSERT(buf.index < bufferPool_->count());
 	LOG(V4L2, Debug) << "Buffer " << buf.index << " is available";
 
 	auto it = queuedBuffers_.find(buf.index);
-- 
2.24.0



More information about the libcamera-devel mailing list