summaryrefslogtreecommitdiff
path: root/mozilla-1663844.patch
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2020-09-25 11:54:11 +0200
committerMartin Stransky <stransky@redhat.com>2020-09-25 11:54:11 +0200
commit85160fd5ada4c253df27ca0a6136ec6b53200135 (patch)
treecae243f8068d9e00b59665c86c339e6676d4a511 /mozilla-1663844.patch
parentEnable parallel builds for aarch64 (diff)
downloadlibrewolf-fedora-ff-85160fd5ada4c253df27ca0a6136ec6b53200135.tar.gz
librewolf-fedora-ff-85160fd5ada4c253df27ca0a6136ec6b53200135.tar.bz2
librewolf-fedora-ff-85160fd5ada4c253df27ca0a6136ec6b53200135.zip
Added openh264 fixes
Diffstat (limited to 'mozilla-1663844.patch')
-rw-r--r--mozilla-1663844.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/mozilla-1663844.patch b/mozilla-1663844.patch
new file mode 100644
index 0000000..1d96ac9
--- /dev/null
+++ b/mozilla-1663844.patch
@@ -0,0 +1,24 @@
+diff --git a/dom/media/platforms/agnostic/gmp/GMPDecoderModule.cpp b/dom/media/platforms/agnostic/gmp/GMPDecoderModule.cpp
+--- a/dom/media/platforms/agnostic/gmp/GMPDecoderModule.cpp
++++ b/dom/media/platforms/agnostic/gmp/GMPDecoderModule.cpp
+@@ -86,7 +86,7 @@ bool GMPDecoderModule::SupportsMimeType(
+
+ bool GMPDecoderModule::SupportsMimeType(
+ const nsACString& aMimeType, DecoderDoctorDiagnostics* aDiagnostics) const {
+- return false;
++ return MP4Decoder::IsH264(aMimeType);
+ }
+
+ } // namespace mozilla
+diff --git a/dom/media/platforms/agnostic/gmp/GMPVideoDecoder.cpp b/dom/media/platforms/agnostic/gmp/GMPVideoDecoder.cpp
+--- a/dom/media/platforms/agnostic/gmp/GMPVideoDecoder.cpp
++++ b/dom/media/platforms/agnostic/gmp/GMPVideoDecoder.cpp
+@@ -67,6 +67,8 @@ void GMPVideoDecoder::Decoded(GMPVideoi4
+ RefPtr<GMPVideoDecoder> self = this;
+ if (v) {
+ mDecodedData.AppendElement(std::move(v));
++ mDecodePromise.ResolveIfExists(std::move(mDecodedData), __func__);
++ mDecodedData = DecodedData();
+ } else {
+ mDecodedData.Clear();
+ mDecodePromise.RejectIfExists(
bgstack15