diff --git a/plugins/win-wasapi/win-wasapi.cpp b/plugins/win-wasapi/win-wasapi.cpp index 574f5280b..21103a3f5 100644 --- a/plugins/win-wasapi/win-wasapi.cpp +++ b/plugins/win-wasapi/win-wasapi.cpp @@ -1,6 +1,7 @@ #include "enum-wasapi.hpp" #include +#include #include #include #include @@ -368,11 +369,16 @@ DWORD WINAPI WASAPISource::ReconnectThread(LPVOID param) CoInitializeEx(0, COINIT_MULTITHREADED); + obs_monitoring_type type = obs_source_get_monitoring_type(source->source); + obs_source_set_monitoring_type(source->source, OBS_MONITORING_TYPE_NONE); + while (!WaitForSignal(source->stopSignal, RECONNECT_INTERVAL)) { if (source->TryInitialize()) break; } + obs_source_set_monitoring_type(source->source, type); + source->reconnectThread = nullptr; source->reconnecting = false; return 0;