Browse Source

win-wasapi: Log source name on initialization

Log the source name when a WASAPI device is initialized.
prgmitchell 2 years ago
parent
commit
d017cb6718
1 changed files with 3 additions and 2 deletions
  1. 3 2
      plugins/win-wasapi/win-wasapi.cpp

+ 3 - 2
plugins/win-wasapi/win-wasapi.cpp

@@ -999,8 +999,9 @@ void WASAPISource::Initialize()
 		}
 	}
 
-	blog(LOG_INFO, "WASAPI: Device '%s' [%" PRIu32 " Hz] initialized",
-	     device_name.c_str(), sampleRate);
+	blog(LOG_INFO,
+	     "WASAPI: Device '%s' [%" PRIu32 " Hz] initialized (source: %s)",
+	     device_name.c_str(), sampleRate, obs_source_get_name(source));
 
 	if (sourceType == SourceType::ProcessOutput && !hooked) {
 		hooked = true;