[EME] Make WidevineAdapter compatible with CDM version 9

NOTE: this breaks compatibility with CDM version 8.
This commit is contained in:
trav90 2019-02-08 10:35:58 -06:00 • committed by Roy Tam
commit eb2e8d7f92
6 changed files with 51 additions and 50 deletions

View file

@ -48,12 +48,12 @@ class CDMWrapper {
public:
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(CDMWrapper)
explicit CDMWrapper(cdm::ContentDecryptionModule_8* aCDM,
explicit CDMWrapper(cdm::ContentDecryptionModule_9* aCDM,
WidevineDecryptor* aDecryptor);
cdm::ContentDecryptionModule_8* GetCDM() const { return mCDM; }
cdm::ContentDecryptionModule_9* GetCDM() const { return mCDM; }
private:
~CDMWrapper();
cdm::ContentDecryptionModule_8* mCDM;
cdm::ContentDecryptionModule_9* mCDM;
RefPtr<WidevineDecryptor> mDecryptor;
};