зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1100164 - Fix gmp-clearkey path - r=unfocused
This commit is contained in:
Родитель
b100812e79
Коммит
df394801a2
|
@ -27,6 +27,7 @@ const STRING_TYPE_NAME = "type.%ID%.name";
|
|||
const SEC_IN_A_DAY = 24 * 60 * 60;
|
||||
|
||||
const EME_PREF_ENABLED = "media.eme.enabled";
|
||||
const NS_GRE_BIN_DIR = "GreBinD";
|
||||
const CLEARKEY_PLUGIN_ID = "gmp-clearkey";
|
||||
const CLEARKEY_VERSION = "0.1";
|
||||
|
||||
|
@ -283,7 +284,8 @@ let OpenH264Provider = {
|
|||
|
||||
if (Preferences.get(EME_PREF_ENABLED, false)) {
|
||||
try {
|
||||
gmpService.addPluginDirectory(OS.Path.join(OS.Constants.Path.libDir,
|
||||
let greBinDir = Services.dirsvc.get(NS_GRE_BIN_DIR, Ci.nsILocalFile);
|
||||
gmpService.addPluginDirectory(OS.Path.join(greBinDir.path,
|
||||
CLEARKEY_PLUGIN_ID,
|
||||
CLEARKEY_VERSION));
|
||||
} catch (e) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче