Browse Source

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.
jpark37 4 years ago
parent
commit
8ce1bb645f
1 changed files with 0 additions and 7 deletions
  1. 0 7
      plugins/win-wasapi/win-wasapi.cpp

+ 0 - 7
plugins/win-wasapi/win-wasapi.cpp

@@ -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();