diff --git a/apps/desktop/src-tauri/src/capture/src/quartz/capturer.rs b/apps/desktop/src-tauri/src/capture/src/quartz/capturer.rs index 6d83f693..5dd74761 100644 --- a/apps/desktop/src-tauri/src/capture/src/quartz/capturer.rs +++ b/apps/desktop/src-tauri/src/capture/src/quartz/capturer.rs @@ -56,6 +56,10 @@ impl Capturer { stream }; + if queue.is_null() { + return Err(CGError::Failure); + } + match unsafe { CGDisplayStreamStart(stream) } { CGError::Success => Ok(Capturer { stream, queue, width, height, format, display