Browse Source

obs-qsv11: Set subprocess timeout to 10 sec

(Jim note: Apparently my laptop with two intel GPUs actually took too
long, so I'm giving it another 2 seconds max)
Jim 3 years ago
parent
commit
ee88776c7e
1 changed files with 3 additions and 1 deletions
  1. 3 1
      plugins/obs-qsv11/obs-qsv-test/obs-qsv-test.cpp

+ 3 - 1
plugins/obs-qsv11/obs-qsv-test/obs-qsv-test.cpp

@@ -82,11 +82,13 @@ static bool get_adapter_caps(IDXGIFactory *factory, uint32_t adapter_idx)
 	return true;
 }
 
+#define CHECK_TIMEOUT_MS 10000
+
 DWORD WINAPI TimeoutThread(LPVOID param)
 {
 	HANDLE hMainThread = (HANDLE)param;
 
-	DWORD ret = WaitForSingleObject(hMainThread, 8000);
+	DWORD ret = WaitForSingleObject(hMainThread, CHECK_TIMEOUT_MS);
 	if (ret == WAIT_TIMEOUT)
 		TerminateProcess(GetCurrentProcess(), STATUS_TIMEOUT);