libcamera: base: shared_fd: Rename fd() to get()
For consistency with UniqueFD, rename the fd() function to get(). Renaming UniqueFD::get() to fd() would have been another option, but was rejected to keep as close as possible to the std::shared_ptr<> and std::unique_ptr<> APIs. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Hirokazu Honda <hiroh@chromium.org>
This commit is contained in:
@@ -52,7 +52,7 @@ FrameWrap::FrameWrap(GstAllocator *allocator, FrameBuffer *buffer,
|
||||
outstandingPlanes_(0)
|
||||
{
|
||||
for (const FrameBuffer::Plane &plane : buffer->planes()) {
|
||||
GstMemory *mem = gst_fd_allocator_alloc(allocator, plane.fd.fd(),
|
||||
GstMemory *mem = gst_fd_allocator_alloc(allocator, plane.fd.get(),
|
||||
plane.offset + plane.length,
|
||||
GST_FD_MEMORY_FLAG_DONT_CLOSE);
|
||||
gst_memory_resize(mem, plane.offset, plane.length);
|
||||
|
||||
Reference in New Issue
Block a user