mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 08:48:39 +09:00
Issue #26 - Part 2c: Remove dependence on gmp/widevine-adapter/*
This commit is contained in:
parent
995d48aa96
commit
8780b1f3d8
3 changed files with 11 additions and 5 deletions
|
|
@ -22,7 +22,9 @@
|
|||
#include "GMPUtils.h"
|
||||
#include "prio.h"
|
||||
#include "base/task.h"
|
||||
#ifdef MOZ_EME
|
||||
#include "widevine-adapter/WidevineAdapter.h"
|
||||
#endif
|
||||
|
||||
using namespace mozilla::ipc;
|
||||
|
||||
|
|
@ -254,9 +256,13 @@ GMPChild::AnswerStartPlugin(const nsString& aAdapter)
|
|||
return false;
|
||||
}
|
||||
|
||||
#ifdef MOZ_EME
|
||||
bool isWidevine = aAdapter.EqualsLiteral("widevine");
|
||||
|
||||
GMPAdapter* adapter = (isWidevine) ? new WidevineAdapter() : nullptr;
|
||||
#else
|
||||
GMPAdapter* adapter = nullptr;
|
||||
#endif
|
||||
if (!mGMPLoader->Load(libPath.get(),
|
||||
libPath.Length(),
|
||||
mNodeId.BeginWriting(),
|
||||
|
|
|
|||
|
|
@ -770,10 +770,10 @@ GMPParent::ReadChromiumManifestFile(nsIFile* aFile)
|
|||
RefPtr<GenericPromise>
|
||||
GMPParent::ParseChromiumManifest(nsString aJSON)
|
||||
{
|
||||
#ifdef MOZ_EME
|
||||
LOGD("%s: for '%s'", __FUNCTION__, NS_LossyConvertUTF16toASCII(aJSON).get());
|
||||
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
#ifdef MOZ_EME
|
||||
mozilla::dom::WidevineCDMManifest m;
|
||||
if (!m.Init(aJSON)) {
|
||||
return GenericPromise::CreateAndReject(NS_ERROR_FAILURE, __func__);
|
||||
|
|
|
|||
|
|
@ -128,10 +128,10 @@ if CONFIG['MOZ_EME']:
|
|||
'GMPCDMProxy.cpp',
|
||||
]
|
||||
|
||||
DIRS += [
|
||||
'rlz',
|
||||
'widevine-adapter',
|
||||
]
|
||||
DIRS += ['rlz']
|
||||
|
||||
if CONFIG['MOZ_EME']:
|
||||
DIRS += ['widevine-adapter']
|
||||
|
||||
IPDL_SOURCES += [
|
||||
'GMPTypes.ipdlh',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue