mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-27 02:47:31 +09:00
[EME] Make WidevineAdapter compatible with CDM version 9
NOTE: this breaks compatibility with CDM version 8.
This commit is contained in:
parent
a4dd5cc088
commit
eb2e8d7f92
6 changed files with 51 additions and 50 deletions
|
|
@ -46,7 +46,7 @@ void* GetCdmHost(int aHostInterfaceVersion, void* aUserData)
|
|||
Log("GetCdmHostFunc(%d, %p)", aHostInterfaceVersion, aUserData);
|
||||
WidevineDecryptor* decryptor = reinterpret_cast<WidevineDecryptor*>(aUserData);
|
||||
MOZ_ASSERT(decryptor);
|
||||
return static_cast<cdm::Host_8*>(decryptor);
|
||||
return static_cast<cdm::Host_9*>(decryptor);
|
||||
}
|
||||
|
||||
#define STRINGIFY(s) _STRINGIFY(s)
|
||||
|
|
@ -162,7 +162,7 @@ WidevineAdapter::Supports(int32_t aModuleVersion,
|
|||
{
|
||||
return aModuleVersion == CDM_MODULE_VERSION &&
|
||||
aInterfaceVersion == cdm::ContentDecryptionModule::kVersion &&
|
||||
aHostVersion == cdm::Host_8::kVersion;
|
||||
aHostVersion == cdm::Host_9::kVersion;
|
||||
}
|
||||
|
||||
} // namespace mozilla
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue