[libcamera-devel] [PATCH] pipeline: raspberrypi: Fix typo in a comment

Sebastian Fricke sebastian.fricke at posteo.net
Tue Mar 30 12:33:34 CEST 2021


Hey Naushir,

Thank you for the patch.
Just out of curiosity so this assert makes sure that bayerRequeueCount
was not increased more than once during each loop cycle right? Because
otherwise this assert just checks the same condition that the if clause
above checks, right? Because every increase of the variable comes with a
pop from the queue.

On 30.03.2021 08:56, Naushir Patuck wrote:
>s/embedded/bayer/
>
>Signed-off-by: Naushir Patuck <naush at raspberrypi.com>
Reviewed-by: Sebastian Fricke <sebastian.fricke at posteo.net>

>---
> src/libcamera/pipeline/raspberrypi/raspberrypi.cpp | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
>index f22e286ed87a..2a917455500f 100644
>--- a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
>+++ b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
>@@ -1802,7 +1802,7 @@ bool RPiCameraData::findMatchingBuffers(BayerFrame &bayerFrame, FrameBuffer *&em
> 			 * pending embedded data buffers.
> 			 */
> 			if (bayerRequeueCount == unicam_[Unicam::Image].getBuffers().size()) {
>-				/* The embedded queue must be empty at this point! */
>+				/* The bayer queue must be empty at this point! */
> 				ASSERT(bayerQueue_.empty());
>
> 				LOG(RPI, Warning) << "Flushing embedded data stream!";
>-- 
>2.25.1
>
>_______________________________________________
>libcamera-devel mailing list
>libcamera-devel at lists.libcamera.org
>https://lists.libcamera.org/listinfo/libcamera-devel


More information about the libcamera-devel mailing list