summaryrefslogtreecommitdiff
path: root/src/libcamera/pipeline/virtual/test_pattern_generator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcamera/pipeline/virtual/test_pattern_generator.cpp')
-rw-r--r--src/libcamera/pipeline/virtual/test_pattern_generator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcamera/pipeline/virtual/test_pattern_generator.cpp b/src/libcamera/pipeline/virtual/test_pattern_generator.cpp
index 7bc2b338..47d34191 100644
--- a/src/libcamera/pipeline/virtual/test_pattern_generator.cpp
+++ b/src/libcamera/pipeline/virtual/test_pattern_generator.cpp
@@ -25,7 +25,7 @@ int TestPatternGenerator::generateFrame(const Size &size,
MappedFrameBuffer mappedFrameBuffer(buffer,
MappedFrameBuffer::MapFlag::Write);
- auto planes = mappedFrameBuffer.planes();
+ const auto &planes = mappedFrameBuffer.planes();
shiftLeft(size);