[vlc-devel] [PATCH 2/2] Remove mingw-w64 2.0 workarounds

Rafaël Carré funman at videolan.org
Tue May 22 06:20:27 CEST 2012


---
 modules/access/dshow/vlc_dshow.h |    8 +-------
 modules/codec/avcodec/dxva2.c    |    7 +------
 2 files changed, 2 insertions(+), 13 deletions(-)

diff --git a/modules/access/dshow/vlc_dshow.h b/modules/access/dshow/vlc_dshow.h
index 40402dd..b1f7207 100644
--- a/modules/access/dshow/vlc_dshow.h
+++ b/modules/access/dshow/vlc_dshow.h
@@ -39,13 +39,7 @@
 #include <ksmedia.h>
 #include <ddraw.h>
 
-#ifdef __MINGW64_VERSION_MAJOR
-
-#if __MINGW64_VERSION_MAJOR < 3
-DEFINE_GUID(MEDIASUBTYPE_I420,0x30323449,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);
-#endif
-
-#else /* !__MINGW64_VERSION_MAJOR */
+#ifndef __MINGW64_VERSION_MAJOR
 
 #include <dshow.h>
 
diff --git a/modules/codec/avcodec/dxva2.c b/modules/codec/avcodec/dxva2.c
index 66fb473..dacaf08 100644
--- a/modules/codec/avcodec/dxva2.c
+++ b/modules/codec/avcodec/dxva2.c
@@ -75,12 +75,7 @@
 #ifdef __MINGW32__
 # include <_mingw.h>
 
-# if defined(__MINGW64_VERSION_MAJOR) && __MINGW64_VERSION_MAJOR < 3
-#  undef  IDirect3DDeviceManager9_Release
-#  define IDirect3DDeviceManager9_Release(This) (This)->lpVtbl->Release(This)
-# endif
-
-# if !defined(__MINGW64_VERSION_MAJOR) || __MINGW64_VERSION_MAJOR < 3
+# if !defined(__MINGW64_VERSION_MAJOR)
 #  undef MS_GUID
 #  define MS_GUID DEFINE_GUID /* dxva2api.h fails to declare those, redefine as static */
 #  define DXVA2_E_NEW_VIDEO_DEVICE MAKE_HRESULT(1, 4, 4097)
-- 
1.7.9.5



More information about the vlc-devel mailing list