From d4e15331cb593c1a681a79940805c008af5bcb18 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Thu, 23 Sep 2021 14:49:46 +0300 Subject: libcamera: v4l2_videodevice: Don't move planes to construct FrameBuffer The FrameBuffer class has no constructor that takes an rvalue reference to planes. The std::move() is thus misleading as a copy will still take place. Drop it to clarify the code, no functional change is introduced. Signed-off-by: Laurent Pinchart Reviewed-by: Jacopo Mondi Reviewed-by: Umang Jain Reviewed-by: Paul Elder --- src/libcamera/v4l2_videodevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/libcamera/v4l2_videodevice.cpp b/src/libcamera/v4l2_videodevice.cpp index 9b3ee887..ba5f88cd 100644 --- a/src/libcamera/v4l2_videodevice.cpp +++ b/src/libcamera/v4l2_videodevice.cpp @@ -1376,7 +1376,7 @@ std::unique_ptr V4L2VideoDevice::createBuffer(unsigned int index) } } - return std::make_unique(std::move(planes)); + return std::make_unique(planes); } FileDescriptor V4L2VideoDevice::exportDmabufFd(unsigned int index, -- cgit v1.2.1