Skip to content

Commit 92c9eac

Browse files
Fix platform ADM teardown crash on macOS
Point client-sdk-rust at bugfix/ffi_handle_cleanup with synchronous ADM shutdown and FFI dispose handle cleanup. Reorder PlatformAudioSource members so the FFI handle drops before PlatformAudioState during teardown. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 98ea55a commit 92c9eac

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

client-sdk-rust

include/livekit/platform_audio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ class LIVEKIT_API PlatformAudioSource {
114114

115115
PlatformAudioSource(FfiHandle handle, std::shared_ptr<PlatformAudioState> platform_audio) noexcept;
116116

117-
FfiHandle handle_;
118117
std::shared_ptr<PlatformAudioState> platform_audio_;
118+
FfiHandle handle_;
119119
};
120120

121121
/// Platform audio device manager backed by WebRTC's Audio Device Module.

0 commit comments

Comments
 (0)