Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ac713964 authored by Hiroki Mine's avatar Hiroki Mine Committed by Hiroki Mine
Browse files

Use detachFd for getPlanes in CameraExtensions

Fence of ParcelImage is ParcelFileDescriptor, when call getFd() to
get file descriptor of it, the file descriptor still be owned by
ParcelFileDescriptor, which cause fatal occurs when close the
file descriptor in Gralloc4Mapper.

Therefore, use detachFd() to get file descriptor of ParcelImage Fence.
When call detachFd() to get file descriptor of ParcelFileDescriptor,
the file descriptor will not be owned by ParcelFileDescriptor,
so the file descriptor can be closed normally in Gralloc4Mapper.

Bug: 334802005
Change-Id: I8388c913f967565d90eca80e6b1b8ccb09ab018e
parent 20f007c3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment