[EME] Update content_decryption_module.h to more recent revision

Adds support for cdm::ContentDecryptionModule_9 and cdm::Host_9 definitions, HDCP definitions, and 10 and 12 bit image format definitions.
This commit is contained in:
trav90 2019-02-08 12:31:48 -06:00 • committed by Roy Tam
commit 58116c6950
4 changed files with 193 additions and 103 deletions

View file

@ -106,8 +106,8 @@ WidevineAdapter::GMPGetAPI(const char* aAPIName,
WidevineDecryptor* decryptor = new WidevineDecryptor();
auto cdm = reinterpret_cast<cdm::ContentDecryptionModule*>(
create(cdm::ContentDecryptionModule::kVersion,
auto cdm = reinterpret_cast<cdm::ContentDecryptionModule_9*>(
create(cdm::ContentDecryptionModule_9::kVersion,
kEMEKeySystemWidevine.get(),
kEMEKeySystemWidevine.Length(),
&GetCdmHost,
@ -161,7 +161,7 @@ WidevineAdapter::Supports(int32_t aModuleVersion,
int32_t aHostVersion)
{
return aModuleVersion == CDM_MODULE_VERSION &&
aInterfaceVersion == cdm::ContentDecryptionModule::kVersion &&
aInterfaceVersion == cdm::ContentDecryptionModule_9::kVersion &&
aHostVersion == cdm::Host_9::kVersion;
}