diff --git a/mingw-w64-gst-plugins-bad/0005-mediafoundation-missing-const.patch b/mingw-w64-gst-plugins-bad/0005-mediafoundation-missing-const.patch new file mode 100644 index 0000000000..23d38b9703 --- /dev/null +++ b/mingw-w64-gst-plugins-bad/0005-mediafoundation-missing-const.patch @@ -0,0 +1,11 @@ +--- gst-plugins-bad-1.26.10/sys/mediafoundation/gstmfcapturedshow.cpp.orig 2026-01-01 09:27:06.464909400 +0100 ++++ gst-plugins-bad-1.26.10/sys/mediafoundation/gstmfcapturedshow.cpp 2026-01-01 09:27:16.908504900 +0100 +@@ -312,7 +312,7 @@ + gst_caps_unref (caps); + } + +- bool operator< (const GstMFDShowPinInfo & other) ++ bool operator< (const GstMFDShowPinInfo & other) const + { + return gst_mf_source_object_caps_compare (caps, other.caps) < 0; + } diff --git a/mingw-w64-gst-plugins-bad/0006-disable-winrt.patch b/mingw-w64-gst-plugins-bad/0006-disable-winrt.patch new file mode 100644 index 0000000000..5b548084c7 --- /dev/null +++ b/mingw-w64-gst-plugins-bad/0006-disable-winrt.patch @@ -0,0 +1,11 @@ +--- gst-plugins-bad-1.26.10/sys/mediafoundation/meson.build.orig 2025-12-25 15:44:26.000000000 +0100 ++++ gst-plugins-bad-1.26.10/sys/mediafoundation/meson.build 2026-01-01 10:15:16.154401100 +0100 +@@ -103,7 +103,7 @@ + dependencies: mf_lib_deps, + name: 'building for Win32') + +-if runtimeobject_lib.found() ++if runtimeobject_lib.found() and cxx.get_id() == 'msvc' + winapi_app = cxx.compiles('''#include + #include + #include diff --git a/mingw-w64-gst-plugins-bad/PKGBUILD b/mingw-w64-gst-plugins-bad/PKGBUILD index f10d4ad1f7..9cb0ac6384 100644 --- a/mingw-w64-gst-plugins-bad/PKGBUILD +++ b/mingw-w64-gst-plugins-bad/PKGBUILD @@ -8,7 +8,7 @@ pkgname=("${MINGW_PACKAGE_PREFIX}-gst-plugins-bad-libs" "${MINGW_PACKAGE_PREFIX}-gst-plugins-bad" "${MINGW_PACKAGE_PREFIX}-gst-plugin-opencv") pkgver=1.26.10 -pkgrel=1 +pkgrel=2 pkgdesc="GStreamer Multimedia Framework Bad Plugins (mingw-w64)" arch=('any') mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') @@ -92,12 +92,16 @@ makedepends=( source=("${url}/src/${_realname}/${_realname}-${pkgver}.tar.xz"{,.asc} "0001-meson-fix-vulkan.patch" "0002-fix-vulkan-mkenum.patch" - "0004-check-d3d11-header.patch") + "0004-check-d3d11-header.patch" + "0005-mediafoundation-missing-const.patch" + "0006-disable-winrt.patch") sha256sums=('fec973dff512b507d9dcb5a828e04e061e52188f4d5989e953aed6a41beda437' 'SKIP' 'f49da7b178541bf56c79ebb1014c3903c1d5edfec683b59bb5621f31a697bec3' '5ca55fdfc4c5d10d2319f83dddac8130c2ffab67b1248d2233cdcb188d5a0fd3' - '547248d0ea092dee103c452f5d12fc0302237244b3184d00bcb3afdac2476470') + '547248d0ea092dee103c452f5d12fc0302237244b3184d00bcb3afdac2476470' + '83d64970881de6f349ce194b2bf5bd0966e9fb61685ca17bbeb0d17f4cbee5c0' + '0dff68873c53aa4f945c41d311e5e10a744b665ae3e1c4384ccf3bac7bcb9c6b') validpgpkeys=('D637032E45B8C6585B9456565D2EEE6F6F349D7C') # Tim Müller apply_patch_with_msg() { @@ -116,6 +120,10 @@ prepare() { apply_patch_with_msg \ 0004-check-d3d11-header.patch + + apply_patch_with_msg \ + 0005-mediafoundation-missing-const.patch \ + 0006-disable-winrt.patch } build() { @@ -182,7 +190,6 @@ build() { -Ddirectshow=disabled \ -Dwic=disabled \ -Dgtk3=disabled \ - -Dmediafoundation=disabled \ -Dunixfd=disabled \ -Daja=disabled \ -Dd3d11-wgc=disabled \