Browse Source

obs-ffmpeg: Fix NVENC blacklisted card check

Apparently, the parameters were the wrong way, making the test always
fail to detect a blacklisted adapter.
jp9000 6 years ago
parent
commit
748067c930
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/obs-ffmpeg/obs-ffmpeg.c

+ 1 - 1
plugins/obs-ffmpeg/obs-ffmpeg.c

@@ -185,7 +185,7 @@ static bool is_blacklisted(const wchar_t *name)
 {
 	for (size_t i = 0; i < num_blacklisted; i++) {
 		const wchar_t *blacklisted_adapter = blacklisted_adapters[i];
-		if (wstrstri(blacklisted_adapter, name)) {
+		if (wstrstri(name, blacklisted_adapter)) {
 			return true;
 		}
 	}