summaryrefslogtreecommitdiff
path: root/mozilla-1701089.patch
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2021-04-12 10:46:19 +0200
committerMartin Stransky <stransky@redhat.com>2021-04-12 10:46:19 +0200
commit18b80a26feae3b0febbba839e85c1bd66b22e146 (patch)
tree24a20ded665b88e637749be32a25b05ad431a2ad /mozilla-1701089.patch
parentAdded wayland focus workaround - mzbz#1703657 (diff)
downloadlibrewolf-fedora-ff-18b80a26feae3b0febbba839e85c1bd66b22e146.tar.gz
librewolf-fedora-ff-18b80a26feae3b0febbba839e85c1bd66b22e146.tar.bz2
librewolf-fedora-ff-18b80a26feae3b0febbba839e85c1bd66b22e146.zip
Added fix for mozbz#1701089 (Widevine playback issues)
Diffstat (limited to 'mozilla-1701089.patch')
-rw-r--r--mozilla-1701089.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/mozilla-1701089.patch b/mozilla-1701089.patch
new file mode 100644
index 0000000..af431f2
--- /dev/null
+++ b/mozilla-1701089.patch
@@ -0,0 +1,23 @@
+diff --git a/dom/media/gmp/GMPParent.cpp b/dom/media/gmp/GMPParent.cpp
+--- a/dom/media/gmp/GMPParent.cpp
++++ b/dom/media/gmp/GMPParent.cpp
+@@ -884,7 +884,7 @@
+ //
+ // Google's code to parse manifests can be used as a reference for strings
+ // the manifest may contain
+- // https://cs.chromium.org/chromium/src/chrome/common/media/cdm_manifest.cc?l=73&rcl=393e60bfc2299449db7ef374c0ef1c324716e562
++ // https://source.chromium.org/chromium/chromium/src/+/master:components/cdm/common/cdm_manifest.cc;l=74;drc=775880ced8a989191281e93854c7f2201f25068f
+ //
+ // Gecko's internal strings can be found at
+ // https://searchfox.org/mozilla-central/rev/ea63a0888d406fae720cf24f4727d87569a8cab5/dom/media/eme/MediaKeySystemAccess.cpp#149-155
+@@ -892,7 +892,8 @@
+ nsCString codec;
+ if (chromiumCodec.EqualsASCII("vp8")) {
+ codec = "vp8"_ns;
+- } else if (chromiumCodec.EqualsASCII("vp9.0")) {
++ } else if (chromiumCodec.EqualsASCII("vp9.0") || // Legacy string.
++ chromiumCodec.EqualsASCII("vp09")) {
+ codec = "vp9"_ns;
+ } else if (chromiumCodec.EqualsASCII("avc1")) {
+ codec = "h264"_ns;
+
bgstack15