diff options
author | Barnabás Pőcze <pobrn@protonmail.com> | 2024-11-26 18:03:05 +0000 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2024-11-27 16:18:45 +0200 |
commit | 4e557e544bce6da8c00c73de2dfe76403bbf8c00 (patch) | |
tree | 15ae2cca61f7fd4a7a206bf85809d1baf14e16bc /package | |
parent | 5d4b7e4b5b2901e87158de10d5ad2726c0b17c50 (diff) |
libcamera: Don't copy `StreamConfiguration` when iterating
A copy is made in the range-based for loop, and thus all modifications
done in the for loop body are lost, and not actually applied to
the object in the container.
Fix that by taking a reference in the range-based for loop.
Fixes: 4217c9f1aa863c ("libcamera: camera: Zero streams before validate()")
Fixes: 613d5402673eb9 ("pipeline: raspberrypi: Fix handling of colour spaces")
Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Naushir Patuck <naush@raspberrypi.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'package')
0 files changed, 0 insertions, 0 deletions