Skip to content

Commit

Permalink
enter async runtime & ffi v0.3.17 (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
theomonnom authored Dec 9, 2023
1 parent 1e3e149 commit 938e0ce
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion livekit-ffi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 2 additions & 0 deletions livekit-ffi/src/server/audio_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions livekit-ffi/src/server/video_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
);
Expand Down

0 comments on commit 938e0ce

Please sign in to comment.