浏览代码

win-wasapi: Log source name on initialization

Log the source name when a WASAPI device is initialized.
prgmitchell 2 年之前
父节点
当前提交
d017cb6718
共有 1 个文件被更改,包括 3 次插入2 次删除
  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) {
 	if (sourceType == SourceType::ProcessOutput && !hooked) {
 		hooked = true;
 		hooked = true;