summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDorota Czaplejewicz <dorota.czaplejewicz@puri.sm>2021-09-26 23:33:19 +0300
committerKieran Bingham <kieran.bingham@ideasonboard.com>2021-09-28 11:55:05 +0100
commit02f7db4426001cfade29fd422f3564c54e5347fb (patch)
tree6390decb6ac1942bbc7ee5086de2a64f0b08f9b5
parent6aa838d3311527ee4bac223091c00bf26bec3cda (diff)
simple-cam: Use matching type to store stream size
Signed-off-by: Dorota Czaplejewicz <dorota.czaplejewicz@puri.sm> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rw-r--r--simple-cam.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/simple-cam.cpp b/simple-cam.cpp
index ff7b440..71a715a 100644
--- a/simple-cam.cpp
+++ b/simple-cam.cpp
@@ -307,7 +307,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;
}