From 748067c9303928f0b8df7bcb2ed7b2f13ce7d448 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Thu, 28 Feb 2019 06:34:13 -0800 Subject: [PATCH] obs-ffmpeg: Fix NVENC blacklisted card check Apparently, the parameters were the wrong way, making the test always fail to detect a blacklisted adapter. --- plugins/obs-ffmpeg/obs-ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/obs-ffmpeg/obs-ffmpeg.c b/plugins/obs-ffmpeg/obs-ffmpeg.c index 27e361e0a..6b3205e35 100644 --- a/plugins/obs-ffmpeg/obs-ffmpeg.c +++ b/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; } }