[vlc-commits] [Git][videolan/vlc][master] 4 commits: build: raise minimum mingw-w64 to v8

Steve Lhomme (@robUx4) gitlab at videolan.org
Mon Jan 26 08:02:22 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
e5725fe5 by Steve Lhomme at 2026-01-26T06:42:05+00:00
build: raise minimum mingw-w64 to v8

The minimum mingw-w64 toolchain that anyone can get on Debian [^1] and Ubuntu [^2]
is mingw-w64 v8. We don't need to support older versions.

We don't need to drag support in VLC 4 for versions people can't easily get.

[^1]: https://packages.debian.org/bullseye/mingw-w64
[^2]: https://packages.ubuntu.com/en/jammy/mingw-w64

- - - - -
0eadc253 by Steve Lhomme at 2026-01-26T06:42:05+00:00
meson: get the full mingw-w64 string directly

This string has been there since mingw-w64 v4 [^1].

[^1]: https://github.com/mingw-w64/mingw-w64/commit/0695eeb4b050e78393dfe30fce358935c7cb7b66

- - - - -
3d960bca by Steve Lhomme at 2026-01-26T06:42:05+00:00
directx_va: remove support for mingw-w64 older than v8

- - - - -
cbe090a3 by Steve Lhomme at 2026-01-26T06:42:05+00:00
d3d11_filters: remove support for mingw-w64 older than v8

- - - - -


4 changed files:

- configure.ac
- meson.build
- modules/codec/avcodec/directx_va.c
- modules/hw/d3d11/d3d11_filters.c


Changes:

=====================================
configure.ac
=====================================
@@ -704,7 +704,7 @@ dnl Check for broken versions of mingw-runtime compatibility library
     AC_PREPROC_IFELSE([AC_LANG_SOURCE([
 #include <_mingw.h>
 #if defined(__MINGW64_VERSION_MAJOR)
-# if __MINGW64_VERSION_MAJOR < 6
+# if __MINGW64_VERSION_MAJOR < 8
 #  error Update your mingw-w64! This one is too old.
 # endif
 #else


=====================================
meson.build
=====================================
@@ -391,20 +391,19 @@ windows_version_test = '''
             prefix: '#include <_mingw.h>')
 
         if mingw_version_major == ''
-            error('Cannot compile with MinGW, use MinGW-w64 >= 6.0 instead.')
+            error('Cannot compile with MinGW, use MinGW-w64 >= 8.0 instead.')
         endif
 
-        # Check that MinGW w64 is at least 6.0
-        if mingw_version_major.to_int() < 6
-            error('MinGW-w64 6.0 or higher required!')
+        # Check that MinGW w64 is at least 8.0
+        if mingw_version_major.to_int() < 8
+            error('MinGW-w64 8.0 or higher required!')
         endif
 
         have_mingw = true
 
-        mingw_version_minor = cc.get_define('__MINGW64_VERSION_MINOR',
+        mingw_version = cc.get_define('__MINGW64_VERSION_STR',
             prefix: '#include <_mingw.h>')
 
-        mingw_version = '@0 at .@1@'.format(mingw_version_major, mingw_version_minor)
         message('Using MinGW-w64 ' + mingw_version)
 
         # Defines needed for MinGW


=====================================
modules/codec/avcodec/directx_va.c
=====================================
@@ -117,23 +117,6 @@ DEFINE_GUID(DXVA_ModeVP9_VLD_Profile0,       0x463707f8, 0xa1d0,0x4585, 0x87, 0x
 DEFINE_GUID(DXVA_ModeVP9_VLD_10bit_Profile2, 0xa4c749ef, 0x6ecf,0x48aa, 0x84, 0x48, 0x50, 0xa7, 0xa1, 0x16, 0x5f, 0xf7);
 # endif
 
-#  if __MINGW64_VERSION_MAJOR < 8
-DEFINE_GUID(DXVA2_ModeMPEG2and1_VLD,                0x86695f12, 0x340e, 0x4f04, 0x9f, 0xd3, 0x92, 0x53, 0xdd, 0x32, 0x74, 0x60);
-DEFINE_GUID(DXVA2_ModeMPEG1_VLD,                    0x6f3ec719, 0x3735, 0x42cc, 0x80, 0x63, 0x65, 0xcc, 0x3c, 0xb3, 0x66, 0x16);
-DEFINE_GUID(DXVA2_ModeMPEG4pt2_VLD_Simple,          0xefd64d74, 0xc9e8, 0x41d7, 0xa5, 0xe9, 0xe9, 0xb0, 0xe3, 0x9f, 0xa3, 0x19);
-DEFINE_GUID(DXVA2_ModeMPEG4pt2_VLD_AdvSimple_NoGMC, 0xed418a9f, 0x010d, 0x4eda, 0x9a, 0xe3, 0x9a, 0x65, 0x35, 0x8d, 0x8d, 0x2e);
-DEFINE_GUID(DXVA2_ModeMPEG4pt2_VLD_AdvSimple_GMC,   0xab998b5b, 0x4258, 0x44a9, 0x9f, 0xeb, 0x94, 0xe5, 0x97, 0xa6, 0xba, 0xae);
-DEFINE_GUID(DXVA2_ModeVC1_D2010,                    0x1b81beA4, 0xa0c7, 0x11d3, 0xb9, 0x84, 0x00, 0xc0, 0x4f, 0x2e, 0x73, 0xc5); // August 2010 update
-DEFINE_GUID(DXVA2_ModeH264_VLD_Stereo_Progressive_NoFGT, 0xd79be8da, 0x0cf1, 0x4c81, 0xb8, 0x2a, 0x69, 0xa4, 0xe2, 0x36, 0xf4, 0x3d);
-DEFINE_GUID(DXVA2_ModeH264_VLD_Stereo_NoFGT,             0xf9aaccbb, 0xc2b6, 0x4cfc, 0x87, 0x79, 0x57, 0x07, 0xb1, 0x76, 0x05, 0x52);
-DEFINE_GUID(DXVA2_ModeH264_VLD_Multiview_NoFGT,          0x705b9d82, 0x76cf, 0x49d6, 0xb7, 0xe6, 0xac, 0x88, 0x72, 0xdb, 0x01, 0x3c);
-DEFINE_GUID(DXVA2_ModeHEVC_VLD_Main,                0x5b11d51b, 0x2f4c, 0x4452, 0xbc, 0xc3, 0x09, 0xf2, 0xa1, 0x16, 0x0c, 0xc0);
-DEFINE_GUID(DXVA2_ModeHEVC_VLD_Main10,              0x107af0e0, 0xef1a, 0x4d19, 0xab, 0xa8, 0x67, 0xa1, 0x63, 0x07, 0x3d, 0x13);
-DEFINE_GUID(DXVA2_ModeVP8_VLD,                      0x90b899ea, 0x3a62, 0x4705, 0x88, 0xb3, 0x8d, 0xf0, 0x4b, 0x27, 0x44, 0xe7);
-DEFINE_GUID(DXVA2_ModeVP9_VLD_Profile0,             0x463707f8, 0xa1d0, 0x4585, 0x87, 0x6d, 0x83, 0xaa, 0x6d, 0x60, 0xb8, 0x9e);
-DEFINE_GUID(DXVA2_ModeVP9_VLD_10bit_Profile2,       0xa4c749ef, 0x6ecf, 0x48aa, 0x84, 0x48, 0x50, 0xa7, 0xa1, 0x16, 0x5f, 0xf7);
-#  endif // __MINGW64_VERSION_MAJOR < 8
-
 #  if !defined(DXVA_ModeH264_MoComp_NoFGT) // __MINGW64_VERSION_MAJOR < 13
 DEFINE_GUID(DXVA_ModeMPEG1_A,                       0x1b81be09, 0xa0c7, 0x11d3, 0xb9, 0x84, 0x00, 0xc0, 0x4f, 0x2e, 0x73, 0xc5);
 DEFINE_GUID(DXVA_ModeMPEG2_A,                       0x1b81be0A, 0xa0c7, 0x11d3, 0xb9, 0x84, 0x00, 0xc0, 0x4f, 0x2e, 0x73, 0xc5);


=====================================
modules/hw/d3d11/d3d11_filters.c
=====================================
@@ -43,13 +43,6 @@
 #include "d3d11_processor.h"
 #include "../../video_chroma/d3d11_fmt.h"
 
-#if defined(__MINGW64_VERSION_MAJOR) && __MINGW64_VERSION_MAJOR < 8
-#define D3D11_VIDEO_PROCESSOR_FILTER_CAPS_BRIGHTNESS   0x1
-#define D3D11_VIDEO_PROCESSOR_FILTER_CAPS_CONTRAST     0x2
-#define D3D11_VIDEO_PROCESSOR_FILTER_CAPS_HUE          0x4
-#define D3D11_VIDEO_PROCESSOR_FILTER_CAPS_SATURATION   0x8
-#endif // __MINGW64_VERSION_MAJOR<8
-
 #define PROCESSOR_SLICES 2
 
 struct filter_level



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/93b07733eed71321db313555a0db09551de5a5aa...cbe090a32d38b9ad5596c7a3fb1739a44e2f3fa0

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/93b07733eed71321db313555a0db09551de5a5aa...cbe090a32d38b9ad5596c7a3fb1739a44e2f3fa0
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