Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

refactor(recording): update macos screen capture for sync content filter API

Richie McIlroy4655584b470d
diff --git a/crates/recording/src/sources/screen_capture/macos.rs b/crates/recording/src/sources/screen_capture/macos.rs
index 988714ad2..1af14ccb5 100644
--- a/crates/recording/src/sources/screen_capture/macos.rs
+++ b/crates/recording/src/sources/screen_capture/macos.rs
@@ -206,11 +206,7 @@ impl ScreenCaptureConfig<CMSampleBufferCapture> {
continue;
};
- if let Some(sc_window) = window
- .raw_handle()
- .as_sc(self.shareable_content.clone())
- .await
- {
+ if let Some(sc_window) = window.raw_handle().as_sc(self.shareable_content.clone()) {
collected.push(sc_window);
}
}
@@ -224,7 +220,6 @@ impl ScreenCaptureConfig<CMSampleBufferCapture> {
self.shareable_content.clone(),
excluded_sc_windows,
)
- .await
.ok_or(SourceError::AsContentFilter)?;
debug!("SCK content filter: {:?}", content_filter);