Bug 1100164 - Fix gmp-clearkey path - r=unfocused

This commit is contained in:
Edwin Flores 2014-11-20 11:17:47 +13:00
parent e959e5f83a
commit bcf8b36b27

View File

@ -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) {