From 94cf50a8cedf5836ba46b452234fd54736d37a44 Mon Sep 17 00:00:00 2001 From: PatTheMav Date: Mon, 11 Jul 2022 22:52:10 +0200 Subject: [PATCH] mac-capture: Add more verbose log warning for missing permissions --- plugins/mac-capture/mac-screen-capture.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/mac-capture/mac-screen-capture.m b/plugins/mac-capture/mac-screen-capture.m index f9a505b86..381df575b 100644 --- a/plugins/mac-capture/mac-screen-capture.m +++ b/plugins/mac-capture/mac-screen-capture.m @@ -540,11 +540,17 @@ static void screen_capture_build_content_list(struct screen_capture *sc) if (error == nil && sc->shareable_content_available != NULL) { sc->shareable_content = [shareable_content retain]; } else { +#ifdef DEBUG MACCAP_ERR( "screen_capture_properties: Failed to get shareable content with error %s\n", [[error localizedFailureReason] cStringUsingEncoding: NSUTF8StringEncoding]); +#endif + MACCAP_LOG( + LOG_WARNING, + "Unable to get list of available applications or windows. " + "Please check if OBS has necessary screen capture permissions."); } os_sem_post(sc->shareable_content_available); };