mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-22 08:27:31 +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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue