Skip to content

Commit 9c03845

Browse files
Merge pull request #1375 from CapSoftware/more-recording-fixes
Simplify system stop error check in macOS screen capture
2 parents 4a7985b + 268eecb commit 9c03845

File tree

1 file changed

+0
-6
lines changed
  • crates/recording/src/sources/screen_capture

1 file changed

+0
-6
lines changed

crates/recording/src/sources/screen_capture/macos.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -460,12 +460,6 @@ impl output_pipeline::VideoSource for VideoSource {
460460
}
461461

462462
fn is_system_stop_error(err: &ns::Error) -> bool {
463-
const SCK_ERROR_DOMAIN: &str = "com.apple.ScreenCaptureKit.error";
464-
465-
if err.domain().to_string() != SCK_ERROR_DOMAIN {
466-
return false;
467-
}
468-
469463
err.localized_description().to_string() == "Stream was stopped by the system"
470464
}
471465

0 commit comments

Comments
 (0)