[vlc-commits] [Git][videolan/vlc][master] mft: fix warning for GetProcAddress cast

Rémi Denis-Courmont (@Courmisch) gitlab at videolan.org
Sun Mar 6 09:40:38 UTC 2022



Rémi Denis-Courmont pushed to branch master at VideoLAN / VLC


Commits:
ab7be296 by Steve Lhomme at 2022-03-06T09:06:43+00:00
mft: fix warning for GetProcAddress cast

- - - - -


1 changed file:

- modules/codec/mft.cpp


Changes:

=====================================
modules/codec/mft.cpp
=====================================
@@ -1563,7 +1563,8 @@ static int LoadMFTLibrary(decoder_t *p_dec)
     HINSTANCE mfplat_dll = LoadLibrary(TEXT("mfplat.dll"));
     if (mfplat_dll)
     {
-        p_sys->fptr_MFCreateDXGIDeviceManager = (pf_MFCreateDXGIDeviceManager)GetProcAddress(mfplat_dll, "MFCreateDXGIDeviceManager");
+        p_sys->fptr_MFCreateDXGIDeviceManager =  reinterpret_cast<pf_MFCreateDXGIDeviceManager>(
+            GetProcAddress(mfplat_dll, "MFCreateDXGIDeviceManager") );
         // we still have the DLL automatically loaded after this
         FreeLibrary(mfplat_dll);
     }



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/ab7be29617a4d7449f2a3e73337f9adba614c6eb

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/ab7be29617a4d7449f2a3e73337f9adba614c6eb
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list