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
parent
e582879303
commit
8ce1bb645f
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue