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 <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
This commit is contained in:
@@ -1376,7 +1376,7 @@ std::unique_ptr<FrameBuffer> V4L2VideoDevice::createBuffer(unsigned int index)
|
||||
}
|
||||
}
|
||||
|
||||
return std::make_unique<FrameBuffer>(std::move(planes));
|
||||
return std::make_unique<FrameBuffer>(planes);
|
||||
}
|
||||
|
||||
FileDescriptor V4L2VideoDevice::exportDmabufFd(unsigned int index,
|
||||
|
||||
Reference in New Issue
Block a user