v4l2: camera_proxy: Pass const reference to setFmtFromConfig()
The setFmtFromConfig() method doesn't modify its parameter, make it const. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
This commit is contained in:
parent
da3c15c3de
commit
a6c831a996
2 changed files with 3 additions and 3 deletions
|
@ -162,10 +162,10 @@ bool V4L2CameraProxy::validateMemoryType(uint32_t memory)
|
|||
return memory == V4L2_MEMORY_MMAP;
|
||||
}
|
||||
|
||||
void V4L2CameraProxy::setFmtFromConfig(StreamConfiguration &streamConfig)
|
||||
void V4L2CameraProxy::setFmtFromConfig(const StreamConfiguration &streamConfig)
|
||||
{
|
||||
const PixelFormatInfo &info = PixelFormatInfo::info(streamConfig.pixelFormat);
|
||||
Size size = streamConfig.size;
|
||||
const Size &size = streamConfig.size;
|
||||
|
||||
curV4L2Format_.fmt.pix.width = size.width;
|
||||
curV4L2Format_.fmt.pix.height = size.height;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue