Bug 1707559 - Stub out QueryOutputProtectionStatus. r=jbauman, a=jcristau

Differential Revision: https://phabricator.services.mozilla.com/D113361
This commit is contained in:
Bryce Seager van Dyk 2021-04-26 20:52:47 +00:00
parent 897129f569
commit 986c67ce68
2 changed files with 9 additions and 1 deletions

View File

@ -328,6 +328,14 @@ void ChromiumCDMChild::OnSessionClosed(const char* aSessionId,
nsCString(aSessionId, aSessionIdSize));
}
void ChromiumCDMChild::QueryOutputProtectionStatus() {
GMP_LOG_DEBUG("ChromiumCDMChild::QueryOutputProtectionStatus()");
if (mCDM) {
mCDM->OnQueryOutputProtectionStatus(cdm::kQuerySucceeded, uint32_t{},
uint32_t{});
}
}
void ChromiumCDMChild::OnInitialized(bool aSuccess) {
MOZ_ASSERT(!mInitPromise.IsEmpty(),
"mInitPromise should exist during init callback!");

View File

@ -55,7 +55,7 @@ class ChromiumCDMChild : public PChromiumCDMChild, public cdm::Host_10 {
const char* aChallenge,
uint32_t aChallengeSize) override {}
void EnableOutputProtection(uint32_t aDesiredProtectionMask) override {}
void QueryOutputProtectionStatus() override {}
void QueryOutputProtectionStatus() override;
void OnDeferredInitializationDone(cdm::StreamType aStreamType,
cdm::Status aDecoderStatus) override {}
void RequestStorageId(uint32_t aVersion) override;