From 268eecb7924b5cb525bf4e39185e3a70dd1e9834 Mon Sep 17 00:00:00 2001 From: Richie McIlroy <33632126+richiemcilroy@users.noreply.github.com> Date: Mon, 10 Nov 2025 23:27:47 +0000 Subject: [PATCH] Simplify system stop error check in macOS screen capture --- crates/recording/src/sources/screen_capture/macos.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/crates/recording/src/sources/screen_capture/macos.rs b/crates/recording/src/sources/screen_capture/macos.rs index 248585166d..0cbab83e48 100644 --- a/crates/recording/src/sources/screen_capture/macos.rs +++ b/crates/recording/src/sources/screen_capture/macos.rs @@ -460,12 +460,6 @@ impl output_pipeline::VideoSource for VideoSource { } fn is_system_stop_error(err: &ns::Error) -> bool { - const SCK_ERROR_DOMAIN: &str = "com.apple.ScreenCaptureKit.error"; - - if err.domain().to_string() != SCK_ERROR_DOMAIN { - return false; - } - err.localized_description().to_string() == "Stream was stopped by the system" }