From 02f80a10137a3e4a7f9d0930a5475935d9657508 Mon Sep 17 00:00:00 2001 From: Matt Gajownik Date: Sat, 19 Feb 2022 14:07:54 +1100 Subject: [PATCH] win-wasapi: Only enable work queue on Windows 10+ Fixes #5967 --- plugins/win-wasapi/win-wasapi.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/win-wasapi/win-wasapi.cpp b/plugins/win-wasapi/win-wasapi.cpp index 6dfa9996f..07aa27821 100644 --- a/plugins/win-wasapi/win-wasapi.cpp +++ b/plugins/win-wasapi/win-wasapi.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #include #include @@ -324,7 +325,12 @@ WASAPISource::WASAPISource(obs_data_t *settings, obs_source_t *source_, /* OBS will already load DLL on startup if it exists */ const HMODULE rtwq_module = GetModuleHandle(L"RTWorkQ.dll"); - rtwq_supported = rtwq_module != NULL; + + // while RTWQ was introduced in Win 8.1, it silently fails + // to capture Desktop Audio for some reason. Disable for now. + if (get_win_ver_int() >= _WIN32_WINNT_WIN10) + rtwq_supported = rtwq_module != NULL; + if (rtwq_supported) { rtwq_unlock_work_queue = (PFN_RtwqUnlockWorkQueue)GetProcAddress(