diff --git a/Cargo.lock b/Cargo.lock index 10b2bf3b..8fff2bb7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1070,7 +1070,7 @@ dependencies = [ [[package]] name = "livekit-ffi" -version = "0.3.16" +version = "0.3.17" dependencies = [ "console-subscriber", "dashmap", diff --git a/livekit-ffi/Cargo.toml b/livekit-ffi/Cargo.toml index b7fa5ca5..b6d95fab 100644 --- a/livekit-ffi/Cargo.toml +++ b/livekit-ffi/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "livekit-ffi" -version = "0.3.16" +version = "0.3.17" edition = "2021" license = "Apache-2.0" description = "FFI interface for bindings in other languages" diff --git a/livekit-ffi/src/server/audio_source.rs b/livekit-ffi/src/server/audio_source.rs index 8f9fa79e..c1c6e48d 100644 --- a/livekit-ffi/src/server/audio_source.rs +++ b/livekit-ffi/src/server/audio_source.rs @@ -37,6 +37,8 @@ impl FfiAudioSource { #[cfg(not(target_arch = "wasm32"))] proto::AudioSourceType::AudioSourceNative => { use livekit::webrtc::audio_source::native::NativeAudioSource; + + let _guard = server.async_runtime.enter(); let audio_source = NativeAudioSource::new( new_source.options.map(Into::into).unwrap_or_default(), new_source.sample_rate, diff --git a/livekit-ffi/src/server/video_source.rs b/livekit-ffi/src/server/video_source.rs index f451ad70..3d68f138 100644 --- a/livekit-ffi/src/server/video_source.rs +++ b/livekit-ffi/src/server/video_source.rs @@ -38,6 +38,8 @@ impl FfiVideoSource { #[cfg(not(target_arch = "wasm32"))] proto::VideoSourceType::VideoSourceNative => { use livekit::webrtc::video_source::native::NativeVideoSource; + + let _guard = server.async_runtime.enter(); let video_source = NativeVideoSource::new( new_source.resolution.map(Into::into).unwrap_or_default(), );