[vlc-commits] MFT: work-around a mingw64 5.0 bug

Jean-Baptiste Kempf git at videolan.org
Mon Dec 4 01:11:01 CET 2017


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Dec  4 00:45:40 2017 +0100| [a7ca2c216899e99f94f5034d7996512a47965949] | committer: Jean-Baptiste Kempf

MFT: work-around a mingw64 5.0 bug

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a7ca2c216899e99f94f5034d7996512a47965949
---

 modules/codec/mft.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/mft.c b/modules/codec/mft.c
index f91fc7c00f..f7d9a257b6 100644
--- a/modules/codec/mft.c
+++ b/modules/codec/mft.c
@@ -1090,7 +1090,7 @@ static int FindMFT(decoder_t *p_dec)
 
 static int LoadMFTLibrary(MFHandle *mf)
 {
-#if _WIN32_WINNT < _WIN32_WINNT_WIN7 || VLC_WINSTORE_APP
+#if _WIN32_WINNT < _WIN32_WINNT_WIN7 || VLC_WINSTORE_APP || __MINGW64_VERSION_MAJOR < 6
     mf->mfplat_dll = LoadLibrary(TEXT("mfplat.dll"));
     if (!mf->mfplat_dll)
         return VLC_EGENERIC;



More information about the vlc-commits mailing list