From e0b870e615dda0b43e2b5778cfd797ba19aa4ba5 Mon Sep 17 00:00:00 2001 From: Naushir Patuck Date: Thu, 18 Nov 2021 16:42:13 +0000 Subject: pipeline: raspberrypi: Add const qualifer in isRaw() This function does not modify the pixFmt parameter, so use a const qualifier. Signed-off-by: Naushir Patuck Reviewed-by: Kieran Bingham Reviewed-by: Umang Jain Reviewed-by: Laurent Pinchart Signed-off-by: Kieran Bingham --- src/libcamera/pipeline/raspberrypi/raspberrypi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libcamera/pipeline/raspberrypi/raspberrypi.cpp') diff --git a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp index 5e1f2273..11d3c2b1 100644 --- a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp +++ b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp @@ -96,7 +96,7 @@ V4L2DeviceFormat toV4L2DeviceFormat(const V4L2SubdeviceFormat &format, return deviceFormat; } -bool isRaw(PixelFormat &pixFmt) +bool isRaw(const PixelFormat &pixFmt) { /* * The isRaw test might be redundant right now the pipeline handler only -- cgit v1.2.1