qt6.qtmultimedia: fix mingw support

This commit is contained in:
Sean Link 2024-04-25 14:11:20 -06:00 committed by Sandro Jäckel
parent 3aee40c139
commit a83bb5b50a
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5
2 changed files with 16 additions and 1 deletions

View File

@ -37,7 +37,9 @@ qtModule {
++ lib.optionals stdenv.hostPlatform.isLinux [ gstreamer gst-plugins-base gst-plugins-good gst-libav gst-vaapi ]
++ lib.optionals stdenv.hostPlatform.isDarwin [ VideoToolbox ];
patches = lib.optionals stdenv.hostPlatform.isMinGW [
patches = [
../patches/fix-qtgui-include-incorrect-case.patch
] ++ lib.optionals stdenv.hostPlatform.isMinGW [
../patches/qtmultimedia-windows-no-uppercase-libs.patch
../patches/qtmultimedia-windows-resolve-function-name.patch
];

View File

@ -0,0 +1,13 @@
diff --git a/src/plugins/multimedia/ffmpeg/qffmpegscreencapture_dxgi.cpp b/src/plugins/multimedia/ffmpeg/qffmpegscreencapture_dxgi.cpp
index affa52d..b71b461 100644
--- a/src/plugins/multimedia/ffmpeg/qffmpegscreencapture_dxgi.cpp
+++ b/src/plugins/multimedia/ffmpeg/qffmpegscreencapture_dxgi.cpp
@@ -7,7 +7,7 @@
#include <private/qabstractvideobuffer_p.h>
#include <private/qmultimediautils_p.h>
#include <private/qwindowsmultimediautils_p.h>
-#include <qtgui/qscreen_platform.h>
+#include <QtGui/qscreen_platform.h>
#include "qvideoframe.h"
#include <qloggingcategory.h>