summaryrefslogtreecommitdiffstats
path: root/dom/media/gmp/GMPChild.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-02-05 22:32:52 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-02-05 22:32:52 +0100
commit4c9689f68077a046e26d2a1ff22959f95d679f54 (patch)
tree9ffa42820cd4df74fa6070a06b5effc4826792fa /dom/media/gmp/GMPChild.cpp
parentd44c61bf60f82d8cc8389674fe61e6536087c273 (diff)
downloadUXP-4c9689f68077a046e26d2a1ff22959f95d679f54.tar
UXP-4c9689f68077a046e26d2a1ff22959f95d679f54.tar.gz
UXP-4c9689f68077a046e26d2a1ff22959f95d679f54.tar.lz
UXP-4c9689f68077a046e26d2a1ff22959f95d679f54.tar.xz
UXP-4c9689f68077a046e26d2a1ff22959f95d679f54.zip
Issue #26 - Part 2c: Remove dependence on gmp/widevine-adapter/*
Diffstat (limited to 'dom/media/gmp/GMPChild.cpp')
-rw-r--r--dom/media/gmp/GMPChild.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/dom/media/gmp/GMPChild.cpp b/dom/media/gmp/GMPChild.cpp
index 14b06cc72..fa6f2f4c8 100644
--- a/dom/media/gmp/GMPChild.cpp
+++ b/dom/media/gmp/GMPChild.cpp
@@ -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(),