From e0519ed1e8fc5e3b7e60fe038dc92e275a707dba Mon Sep 17 00:00:00 2001 From: gxalpha Date: Thu, 8 Jun 2023 21:52:20 +0200 Subject: [PATCH] mac-capture: Explicitly set clear background for SCK (cherry picked from commit 2ea47bb65adb896e23a50d553fd6f6866d89aa81) --- plugins/mac-capture/mac-screen-capture.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/mac-capture/mac-screen-capture.m b/plugins/mac-capture/mac-screen-capture.m index cc3a5acc8..615394824 100644 --- a/plugins/mac-capture/mac-screen-capture.m +++ b/plugins/mac-capture/mac-screen-capture.m @@ -455,9 +455,12 @@ static bool init_screen_stream(struct screen_capture *sc) } break; } os_sem_post(sc->shareable_content_available); + + CGColorRef background = CGColorGetConstantColor(kCGColorClear); [sc->stream_properties setQueueDepth:8]; [sc->stream_properties setShowsCursor:!sc->hide_cursor]; [sc->stream_properties setColorSpaceName:kCGColorSpaceDisplayP3]; + [sc->stream_properties setBackgroundColor:background]; FourCharCode l10r_type = 0; l10r_type = ('l' << 24) | ('1' << 16) | ('0' << 8) | 'r'; [sc->stream_properties setPixelFormat:l10r_type];