Adjust GMP plugin setting (rhbz#2094319)

This commit is contained in:
Martin Stransky 2022-06-09 17:21:56 +02:00
parent 6edb288b6f
commit e2a4b7e32d
2 changed files with 15 additions and 13 deletions

View File

@ -1111,6 +1111,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
* Thu Jun 9 2022 Martin Stransky <stransky@redhat.com>- 101.0.1-1 * Thu Jun 9 2022 Martin Stransky <stransky@redhat.com>- 101.0.1-1
- Updated to 101.0.1 - Updated to 101.0.1
- More VA-API sandbox fixes (mzbz#1769182) - More VA-API sandbox fixes (mzbz#1769182)
- Adjust GMP plugin setting (rhbz#2094319)
* Tue Jun 7 2022 Martin Stransky <stransky@redhat.com>- 101.0-2 * Tue Jun 7 2022 Martin Stransky <stransky@redhat.com>- 101.0-2
- Enabled VA-API by default (+ added VA-API fixes from upstream) - Enabled VA-API by default (+ added VA-API fixes from upstream)

View File

@ -1,6 +1,6 @@
diff -up firefox-101.0/dom/media/gmp/GMPSharedMemManager.h.1663844 firefox-101.0/dom/media/gmp/GMPSharedMemManager.h diff -up firefox-101.0.1/dom/media/gmp/GMPSharedMemManager.h.1663844 firefox-101.0.1/dom/media/gmp/GMPSharedMemManager.h
--- firefox-101.0/dom/media/gmp/GMPSharedMemManager.h.1663844 2022-05-27 01:16:53.000000000 +0200 --- firefox-101.0.1/dom/media/gmp/GMPSharedMemManager.h.1663844 2022-06-08 23:06:36.000000000 +0200
+++ firefox-101.0/dom/media/gmp/GMPSharedMemManager.h 2022-05-30 21:15:20.989993419 +0200 +++ firefox-101.0.1/dom/media/gmp/GMPSharedMemManager.h 2022-06-09 16:45:32.341742564 +0200
@@ -27,7 +27,7 @@ class GMPSharedMem { @@ -27,7 +27,7 @@ class GMPSharedMem {
// returned to the parent pool (which is not included). If more than // returned to the parent pool (which is not included). If more than
// this are needed, we presume the client has either crashed or hung // this are needed, we presume the client has either crashed or hung
@ -10,20 +10,21 @@ diff -up firefox-101.0/dom/media/gmp/GMPSharedMemManager.h.1663844 firefox-101.0
GMPSharedMem() { GMPSharedMem() {
for (size_t i = 0; i < sizeof(mGmpAllocated) / sizeof(mGmpAllocated[0]); for (size_t i = 0; i < sizeof(mGmpAllocated) / sizeof(mGmpAllocated[0]);
diff -up firefox-101.0/dom/media/platforms/agnostic/gmp/GMPDecoderModule.cpp.1663844 firefox-101.0/dom/media/platforms/agnostic/gmp/GMPDecoderModule.cpp diff -up firefox-101.0.1/dom/media/platforms/agnostic/gmp/GMPDecoderModule.cpp.1663844 firefox-101.0.1/dom/media/platforms/agnostic/gmp/GMPDecoderModule.cpp
--- firefox-101.0/dom/media/platforms/agnostic/gmp/GMPDecoderModule.cpp.1663844 2022-05-30 21:15:20.989993419 +0200 --- firefox-101.0.1/dom/media/platforms/agnostic/gmp/GMPDecoderModule.cpp.1663844 2022-06-08 16:10:21.000000000 +0200
+++ firefox-101.0/dom/media/platforms/agnostic/gmp/GMPDecoderModule.cpp 2022-05-30 21:24:16.615282035 +0200 +++ firefox-101.0.1/dom/media/platforms/agnostic/gmp/GMPDecoderModule.cpp 2022-06-09 17:14:51.310699618 +0200
@@ -66,6 +66,7 @@ media::DecodeSupportSet GMPDecoderModule @@ -67,7 +67,7 @@ media::DecodeSupportSet GMPDecoderModule
nsCString api = nsLiteralCString(CHROMIUM_CDM_API); nsCString api = nsLiteralCString(CHROMIUM_CDM_API);
+ // TODO: Do we enable it here?
if (MP4Decoder::IsH264(aMimeType)) { if (MP4Decoder::IsH264(aMimeType)) {
isSupported = HaveGMPFor(api, {"h264"_ns, aGMP.value()}); - isSupported = HaveGMPFor(api, {"h264"_ns, aGMP.value()});
+ isSupported = true;
} else if (VPXDecoder::IsVP9(aMimeType)) { } else if (VPXDecoder::IsVP9(aMimeType)) {
diff -up firefox-101.0/dom/media/platforms/agnostic/gmp/GMPVideoDecoder.cpp.1663844 firefox-101.0/dom/media/platforms/agnostic/gmp/GMPVideoDecoder.cpp isSupported = HaveGMPFor(api, {"vp9"_ns, aGMP.value()});
--- firefox-101.0/dom/media/platforms/agnostic/gmp/GMPVideoDecoder.cpp.1663844 2022-05-27 01:16:53.000000000 +0200 } else if (VPXDecoder::IsVP8(aMimeType)) {
+++ firefox-101.0/dom/media/platforms/agnostic/gmp/GMPVideoDecoder.cpp 2022-05-30 21:15:20.989993419 +0200 diff -up firefox-101.0.1/dom/media/platforms/agnostic/gmp/GMPVideoDecoder.cpp.1663844 firefox-101.0.1/dom/media/platforms/agnostic/gmp/GMPVideoDecoder.cpp
--- firefox-101.0.1/dom/media/platforms/agnostic/gmp/GMPVideoDecoder.cpp.1663844 2022-06-08 16:10:21.000000000 +0200
+++ firefox-101.0.1/dom/media/platforms/agnostic/gmp/GMPVideoDecoder.cpp 2022-06-09 16:45:32.341742564 +0200
@@ -70,6 +70,8 @@ void GMPVideoDecoder::Decoded(GMPVideoi4 @@ -70,6 +70,8 @@ void GMPVideoDecoder::Decoded(GMPVideoi4
RefPtr<GMPVideoDecoder> self = this; RefPtr<GMPVideoDecoder> self = this;
if (v) { if (v) {