commit 074735580e5d44fa0eac2b71cec2b97ed650e6a3
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Wed Apr 15 17:23:57 2020 +0100
Fix build with qt-5.14
buildfix_qt514.patch | 14 ++++++++++++++
plex-media-player.spec | 2 ++
2 files changed, 16 insertions(+)
---
diff --git a/buildfix_qt514.patch b/buildfix_qt514.patch
new file mode 100644
index 0000000..5b415ca
--- /dev/null
+++ b/buildfix_qt514.patch
@@ -0,0 +1,14 @@
+--- a/src/player/CodecsComponent.cpp 2019-12-10 20:22:36.000000000 +0300
++++ b/src/player/CodecsComponent.cpp 2019-12-25 18:13:48.973701844 +0300
+@@ -683,9 +683,9 @@
+ Downloader::HeaderList headers;
+ QString auth = SystemComponent::Get().authenticationToken();
+ if (auth.size())
+- headers.append({"X-Plex-Token", auth});
+- headers.append({"X-Plex-Product", WITH_CODECS ? "Plex Media
Player" : "openpmp"});
+- headers.append({"X-Plex-Platform", "Konvergo"});
++ headers.append(qMakePair<QString, QString>("X-Plex-Token", auth));
++ headers.append(qMakePair<QString, QString>("X-Plex-Product",
WITH_CODECS ? "Plex Media Player" : "openpmp"));
++ headers.append(qMakePair<QString, QString>("X-Plex-Platform",
"Konvergo"));
+ return headers;
+ }
diff --git a/plex-media-player.spec b/plex-media-player.spec
index 869f02b..e4eebd2 100644
--- a/plex-media-player.spec
+++ b/plex-media-player.spec
@@ -28,6 +28,8 @@ Source92:
%{arti_url}/%{clients_hash}/web-client-desktop-%{web_client_desk
Source93: %{arti_url}/%{clients_hash}/web-client-tv-%{web_client_tv}.tar.xz
Source94: %{arti_url}/%{clients_hash}/web-client-tv-%{web_client_tv}.tar.xz.sha1
+Patch0: buildfix_qt514.patch
+
# qtwebengine is not available there
ExcludeArch: ppc64le
Show replies by date