Browse Source

obs-filters: Correct log prefix for noise suppression filter

Ryan Foster 4 years ago
parent
commit
835ac0a556
1 changed files with 11 additions and 11 deletions
  1. 11 11
      plugins/obs-filters/noise-suppress-filter.c

+ 11 - 11
plugins/obs-filters/noise-suppress-filter.c

@@ -512,19 +512,19 @@ bool load_nvafx(void)
 #ifdef LIBNVAFX_ENABLED
 	if (!load_lib()) {
 		blog(LOG_INFO,
-		     "[noise suppress: NVIDIA RTX denoiser disabled, redistributable not found]");
+		     "[noise suppress]: NVIDIA RTX denoiser disabled, redistributable not found");
 		return false;
 	}
 
 	pthread_mutex_init(&nvafx_initializer_mutex, NULL);
 
-#define LOAD_SYM_FROM_LIB(sym, lib, dll)                                   \
-	if (!(sym = (sym##_t)GetProcAddress(lib, #sym))) {                 \
-		DWORD err = GetLastError();                                \
-		printf("[noise suppress: Couldn't load " #sym " from " dll \
-		       ": %lu (0x%lx)]",                                   \
-		       err, err);                                          \
-		goto unload_everything;                                    \
+#define LOAD_SYM_FROM_LIB(sym, lib, dll)                                    \
+	if (!(sym = (sym##_t)GetProcAddress(lib, #sym))) {                  \
+		DWORD err = GetLastError();                                 \
+		printf("[noise suppress]: Couldn't load " #sym " from " dll \
+		       ": %lu (0x%lx)",                                     \
+		       err, err);                                           \
+		goto unload_everything;                                     \
 	}
 
 #define LOAD_SYM(sym) LOAD_SYM_FROM_LIB(sym, nv_audiofx, "NVAudioEffects.dll")
@@ -548,10 +548,10 @@ bool load_nvafx(void)
 	if (err != NVAFX_STATUS_SUCCESS) {
 		if (err == NVAFX_STATUS_GPU_UNSUPPORTED) {
 			blog(LOG_INFO,
-			     "[noise suppress: NVIDIA RTX denoiser disabled: unsupported GPU]");
+			     "[noise suppress]: NVIDIA RTX denoiser disabled: unsupported GPU");
 		} else {
 			blog(LOG_ERROR,
-			     "[noise suppress: NVIDIA RTX denoiser disabled: error %i",
+			     "[noise suppress]: NVIDIA RTX denoiser disabled: error %i",
 			     err);
 		}
 		goto unload_everything;
@@ -564,7 +564,7 @@ bool load_nvafx(void)
 	}
 
 	nvafx_loaded = true;
-	blog(LOG_INFO, "[noise suppress: NVIDIA RTX denoiser enabled]");
+	blog(LOG_INFO, "[noise suppress]: NVIDIA RTX denoiser enabled");
 	return true;
 
 unload_everything: