mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1100164 - Fix gmp-clearkey path - r=unfocused
This commit is contained in:
parent
e959e5f83a
commit
bcf8b36b27
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user