mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-21 22:57:31 +09:00
[EME} Hackily implement cdm::Host_9::RequestStorageId
TODO: Implement this properly in the future.
This commit is contained in:
parent
eb2e8d7f92
commit
a8d231e0a9
2 changed files with 14 additions and 1 deletions
|
|
@ -541,4 +541,17 @@ WidevineDecryptor::CreateFileIO(FileIOClient* aClient)
|
||||||
return new WidevineFileIO(aClient);
|
return new WidevineFileIO(aClient);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
WidevineDecryptor::RequestStorageId(uint32_t aVersion)
|
||||||
|
{
|
||||||
|
Log("ChromiumCDMChild::RequestStorageId() aVersion = %u", aVersion);
|
||||||
|
if (aVersion >= 0x80000000) {
|
||||||
|
mCDM->OnStorageId(aVersion, nullptr, 0);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
//TODO: Need to provide a menaingful buffer instead of a dummy one.
|
||||||
|
mCDM->OnStorageId(aVersion, new uint8_t[1024*1024], 1024 * 1024);
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace mozilla
|
} // namespace mozilla
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,7 @@ public:
|
||||||
cdm::Status aDecoderStatus) override;
|
cdm::Status aDecoderStatus) override;
|
||||||
// cdm::Host_9 interface
|
// cdm::Host_9 interface
|
||||||
// NOTE: the interface has changed upstream.
|
// NOTE: the interface has changed upstream.
|
||||||
void RequestStorageId() override {}
|
void RequestStorageId(uint32_t aVersion) override;
|
||||||
cdm::FileIO* CreateFileIO(cdm::FileIOClient* aClient) override;
|
cdm::FileIO* CreateFileIO(cdm::FileIOClient* aClient) override;
|
||||||
|
|
||||||
GMPDecryptorCallback* Callback() const { return mCallback; }
|
GMPDecryptorCallback* Callback() const { return mCallback; }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue