win-wasapi: Remove monitor invalidation code

The previous monitor recovery logic touches the source monitoring type,
resets the monitor even if the output device hasn't been invalidated,
and was susceptible to races. Monitor invalidation should live within
the monitor abstraction.
master
jpark37 2021-10-01 21:21:54 -07:00 committed by Jim
parent e582879303
commit 8ce1bb645f
1 changed files with 0 additions and 7 deletions

View File

@ -471,18 +471,11 @@ DWORD WINAPI WASAPISource::ReconnectThread(LPVOID param)
hr);
}
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);
if (com_initialized)
CoUninitialize();