obs-ffmpeg: Fix NVENC blacklisted card check

Apparently, the parameters were the wrong way, making the test always
fail to detect a blacklisted adapter.
This commit is contained in:
jp9000
2019-02-28 06:34:13 -08:00
parent f2d7f5b2e7
commit 748067c930

View File

@@ -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;
}
}