diff options
author | Moonchild <moonchild@palemoon.org> | 2023-10-17 16:37:19 +0200 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2023-10-17 16:37:46 +0200 |
commit | 42c8b9470c3c012763677ce0e93ad80bbe0610c9 (patch) | |
tree | 30af1530e1d1760c81cd57e7f7495f8eb79e2e21 /dom | |
parent | d0d6e8edf54d720e2858871e2c1e93e87db6622a (diff) | |
download | uxp-42c8b9470c3c012763677ce0e93ad80bbe0610c9.tar.gz |
Issue #2346 - Remove EME PDM factory creation.
Diffstat (limited to 'dom')
-rw-r--r-- | dom/media/platforms/PDMFactory.cpp | 8 | ||||
-rw-r--r-- | dom/media/platforms/PDMFactory.h | 1 |
2 files changed, 0 insertions, 9 deletions
diff --git a/dom/media/platforms/PDMFactory.cpp b/dom/media/platforms/PDMFactory.cpp index 389b151994..02cbd3d92b 100644 --- a/dom/media/platforms/PDMFactory.cpp +++ b/dom/media/platforms/PDMFactory.cpp @@ -201,11 +201,6 @@ PDMFactory::CreateDecoder(const CreateDecoderParams& aParams) } const TrackInfo& config = aParams.mConfig; - bool isEncrypted = mEMEPDM && config.mCrypto.mValid; - - if (isEncrypted) { - return CreateDecoderWithPDM(mEMEPDM, aParams); - } DecoderDoctorDiagnostics* diagnostics = aParams.mDiagnostics; if (diagnostics) { @@ -329,9 +324,6 @@ bool PDMFactory::Supports(const TrackInfo& aTrackInfo, DecoderDoctorDiagnostics* aDiagnostics) const { - if (mEMEPDM) { - return mEMEPDM->Supports(aTrackInfo, aDiagnostics); - } RefPtr<PlatformDecoderModule> current = GetDecoder(aTrackInfo, aDiagnostics); return !!current; } diff --git a/dom/media/platforms/PDMFactory.h b/dom/media/platforms/PDMFactory.h index e288efadd0..313633ab57 100644 --- a/dom/media/platforms/PDMFactory.h +++ b/dom/media/platforms/PDMFactory.h @@ -56,7 +56,6 @@ private: const CreateDecoderParams& aParams); nsTArray<RefPtr<PlatformDecoderModule>> mCurrentPDMs; - RefPtr<PlatformDecoderModule> mEMEPDM; RefPtr<PlatformDecoderModule> mBlankPDM; bool mWMFFailedToLoad = false; |