summarylogtreecommitdiffstats
path: root/0003-Workaround-multiple-definition-errors-with-amstrmid-.patch
diff options
context:
space:
mode:
authorMartchus2020-06-01 19:54:32 +0200
committerMartchus2020-06-01 19:54:32 +0200
commit9dcc03045176ec30bb5476cd764eb4b2b4bcd418 (patch)
tree10e53ab58b89fda8daa5ffa6c3bb66bf0e520f0d /0003-Workaround-multiple-definition-errors-with-amstrmid-.patch
parenta1e622d5e076855332d69257c1da003090fc8816 (diff)
downloadaur-9dcc03045176ec30bb5476cd764eb4b2b4bcd418.tar.gz
Update to 5.15.0
Diffstat (limited to '0003-Workaround-multiple-definition-errors-with-amstrmid-.patch')
-rw-r--r--0003-Workaround-multiple-definition-errors-with-amstrmid-.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/0003-Workaround-multiple-definition-errors-with-amstrmid-.patch b/0003-Workaround-multiple-definition-errors-with-amstrmid-.patch
new file mode 100644
index 000000000000..d464da610480
--- /dev/null
+++ b/0003-Workaround-multiple-definition-errors-with-amstrmid-.patch
@@ -0,0 +1,30 @@
+From 901bf854204cb2f9a4df9b9771183971f3c2f609 Mon Sep 17 00:00:00 2001
+From: Martchus <martchus@gmx.net>
+Date: Sat, 23 May 2020 15:43:20 +0200
+Subject: [PATCH 3/3] Workaround "multiple definition" errors with
+ amstrmid/strmiids
+
+---
+ src/plugins/directshow/directshow.pro | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/src/plugins/directshow/directshow.pro b/src/plugins/directshow/directshow.pro
+index 27bb3abb..0cce6f20 100644
+--- a/src/plugins/directshow/directshow.pro
++++ b/src/plugins/directshow/directshow.pro
+@@ -16,8 +16,11 @@ mingw {
+ DEFINES += NO_DSHOW_STRSAFE
+ }
+
++# Link against amstrmid for IID_IMFVideoDeviceID, IID_IMFVideoPresenter, IID_IMFTopologyServiceLookupClient
++# and IID_IMFTopologyServiceLookupClient; add -Wl,--allow-multiple-definition to workaround conflicts with
++# strmiids which contains symbols also required but not provided by amstrmid
+ mingw {
+- LIBS_PRIVATE += -lamstrmid
++ LIBS_PRIVATE += -Wl,--allow-multiple-definition -lamstrmid
+ }
+
+ include(common/common.pri)
+--
+2.26.2
+