Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
remove async from screen capture create_options
Brendan Allandda52e402078
diff --git a/Cargo.lock b/Cargo.lockindex e4671dc49..f41ca9088 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -4227,7 +4227,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "4979f22fdb869068da03c9f7528f8297c6fd2606bc3a4affe42e6a823fdb8da4"dependencies = ["cfg-if 1.0.0",- "windows-targets 0.52.6",+ "windows-targets 0.48.5",][[package]]diff --git a/crates/media/src/sources/screen_capture.rs b/crates/media/src/sources/screen_capture.rsindex f0e156d49..8da7093a4 100644--- a/crates/media/src/sources/screen_capture.rs+++ b/crates/media/src/sources/screen_capture.rs@@ -242,9 +242,7 @@ impl<TCaptureFormat: ScreenCaptureFormat> ScreenCaptureSource<TCaptureFormat> {start_time,};- let options = this- .create_options(scap_target, crop_area, captures_audio)- .await?;+ let options = this.create_options(scap_target, crop_area, captures_audio)?;this.options = Arc::new(options);@@ -396,7 +394,7 @@ impl<TCaptureFormat: ScreenCaptureFormat> ScreenCaptureSource<TCaptureFormat> {})}- async fn create_options(+ fn create_options(&self,target: scap::Target,crop_area: Option<Area>,