From 610a49c1901579bc0be37f637d709712db26e665 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Thu, 26 Oct 2023 15:01:54 +0200 Subject: [PATCH] screen win: sleep 2 seconds after registration It seems like there is slight delay before it can be used and since the child process is started immmediately, wait for 2 secons to ensure. --- src/video_capture/screen_win.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/video_capture/screen_win.c b/src/video_capture/screen_win.c index c8f07eb39..b0838d57e 100644 --- a/src/video_capture/screen_win.c +++ b/src/video_capture/screen_win.c @@ -231,6 +231,7 @@ static int register_screen_cap_rec_library(bool is_elevated) { if ((INT_PTR) ret > 32) { log_msg(LOG_LEVEL_NOTICE, MOD_NAME "Module installation successful.\n"); log_msg(LOG_LEVEL_NOTICE, MOD_NAME "If you want to unregister the module, run 'uv -t screen:unregister'.\n"); + sleep(2); return 1; } }