소스 검색

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 7 년 전
부모
커밋
748067c930
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
 		}
 	}