diff options
author | trav90 <travawine@protonmail.ch> | 2019-02-08 10:35:58 -0600 |
---|---|---|
committer | trav90 <travawine@protonmail.ch> | 2019-02-08 10:35:58 -0600 |
commit | 1fa998d8919375312d20d6d54bae955d166031c7 (patch) | |
tree | dc27c0e6c7528d6c9691ad90130d9c576c358b17 /dom/media/gmp/widevine-adapter/WidevineAdapter.cpp | |
parent | 4adc4098851a84ed9436162e8114c6f834fbb64c (diff) | |
download | UXP-1fa998d8919375312d20d6d54bae955d166031c7.tar UXP-1fa998d8919375312d20d6d54bae955d166031c7.tar.gz UXP-1fa998d8919375312d20d6d54bae955d166031c7.tar.lz UXP-1fa998d8919375312d20d6d54bae955d166031c7.tar.xz UXP-1fa998d8919375312d20d6d54bae955d166031c7.zip |
[EME] Make WidevineAdapter compatible with CDM version 9
NOTE: this breaks compatibility with CDM version 8.
Diffstat (limited to 'dom/media/gmp/widevine-adapter/WidevineAdapter.cpp')
-rw-r--r-- | dom/media/gmp/widevine-adapter/WidevineAdapter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dom/media/gmp/widevine-adapter/WidevineAdapter.cpp b/dom/media/gmp/widevine-adapter/WidevineAdapter.cpp index 74b5c38e8..fa703ab0b 100644 --- a/dom/media/gmp/widevine-adapter/WidevineAdapter.cpp +++ b/dom/media/gmp/widevine-adapter/WidevineAdapter.cpp @@ -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 |