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

Commit f6762270 authored by Chien-Yu Chen's avatar Chien-Yu Chen Committed by Android (Google) Code Review
Browse files

Merge "CameraSource: Close native handle if camera is closed" into nyc-mr1-dev

parents 9337971a cb9e8253
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1117,6 +1117,9 @@ void CameraSource::releaseRecordingFrameHandle(native_handle_t* handle) {
        int64_t token = IPCThreadState::self()->clearCallingIdentity();
        mCamera->releaseRecordingFrameHandle(handle);
        IPCThreadState::self()->restoreCallingIdentity(token);
    } else {
        native_handle_close(handle);
        native_handle_delete(handle);
    }
}