[vlc-commits] [Git][videolan/vlc][master] d3d11_fmt: lookup the GPU in the registry in case-insensitive way
Steve Lhomme (@robUx4)
gitlab at videolan.org
Wed Jun 30 09:31:46 UTC 2021
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
fe250af9 by Steve Lhomme at 2021-06-30T09:16:57+00:00
d3d11_fmt: lookup the GPU in the registry in case-insensitive way
It seems newer AMD drivers/GPUs use upper case for the MatchingDeviceId string.
Fixes #25863
- - - - -
1 changed file:
- modules/video_chroma/d3d11_fmt.c
Changes:
=====================================
modules/video_chroma/d3d11_fmt.c
=====================================
@@ -161,7 +161,7 @@ static HKEY GetAdapterRegistry(vlc_object_t *obj, DXGI_ADAPTER_DESC *adapterDesc
len = sizeof(szData);
ret = RegQueryValueEx( hKey, TEXT("MatchingDeviceId"), NULL, NULL, (LPBYTE) &szData, &len );
if ( ret == ERROR_SUCCESS ) {
- if (wcsncmp(lookup, szData, wcslen(lookup)) == 0)
+ if (_wcsnicmp(lookup, szData, wcslen(lookup)) == 0)
return hKey;
msg_Dbg(obj, "different %d device %ls vs %ls", i, lookup, szData);
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/fe250af922d3a927643ecf3287a03996700c9363
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/fe250af922d3a927643ecf3287a03996700c9363
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list