[libcamera-devel] [PATCH 2/2] simple-cam: Use matching type to store stream size

Laurent Pinchart laurent.pinchart at ideasonboard.com
Sun Sep 26 22:33:19 CEST 2021


From: Dorota Czaplejewicz <dorota.czaplejewicz at puri.sm>

Signed-off-by: Dorota Czaplejewicz <dorota.czaplejewicz at puri.sm>
---
 simple-cam.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/simple-cam.cpp b/simple-cam.cpp
index 350f68be7906..e374e45849dc 100644
--- a/simple-cam.cpp
+++ b/simple-cam.cpp
@@ -299,7 +299,7 @@ int main()
 			return EXIT_FAILURE;
 		}
 
-		unsigned int allocated = allocator->buffers(cfg.stream()).size();
+		size_t allocated = allocator->buffers(cfg.stream()).size();
 		std::cout << "Allocated " << allocated << " buffers for stream" << std::endl;
 	}
 
-- 
Regards,

Laurent Pinchart



More information about the libcamera-devel mailing list