From 0aac06bc30425bb0d80e7fba1456084fea7bbcf7 Mon Sep 17 00:00:00 2001 From: Epicalert Date: Fri, 15 Jan 2021 19:03:48 +0800 Subject: [PATCH] Disable "Video Input" window on macOS I'm not sure why, but when it's enabled macOS kills the program complaining "NSScreen reconfig must only happen on the main thread." When it's not enabled the program runs fine. --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 8cf0cf8..84047f0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -12,6 +12,8 @@ int main () { graphicsFrame(); +#ifndef __APPLE__ cvShowFrame(); +#endif } }