mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Merge "camera.device@3.2 wrapper: Close release fence FDs" into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
1c20927f43
@@ -403,12 +403,14 @@ void CameraDeviceSession::ResultBatcher::freeReleaseFences(hidl_vec<CaptureResul
|
||||
if (result.inputBuffer.releaseFence.getNativeHandle() != nullptr) {
|
||||
native_handle_t* handle = const_cast<native_handle_t*>(
|
||||
result.inputBuffer.releaseFence.getNativeHandle());
|
||||
native_handle_close(handle);
|
||||
native_handle_delete(handle);
|
||||
}
|
||||
for (auto& buf : result.outputBuffers) {
|
||||
if (buf.releaseFence.getNativeHandle() != nullptr) {
|
||||
native_handle_t* handle = const_cast<native_handle_t*>(
|
||||
buf.releaseFence.getNativeHandle());
|
||||
native_handle_close(handle);
|
||||
native_handle_delete(handle);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user