From 70498d2115b4ca8f589cd07d9f9c12fdce80d014 Mon Sep 17 00:00:00 2001 From: Chris Pearce Date: Thu, 8 Oct 2015 20:40:09 +1300 Subject: [PATCH] Bug 1211812 - Add pref to select GMP to use for unencrypted decoding. r=jwwang --- browser/app/profile/firefox.js | 5 +++ dom/media/platforms/PDMFactory.cpp | 1 + .../agnostic/eme/EMEAudioDecoder.cpp | 2 +- .../agnostic/eme/EMEVideoDecoder.cpp | 2 +- .../agnostic/gmp/GMPAudioDecoder.cpp | 6 +++ .../agnostic/gmp/GMPDecoderModule.cpp | 38 +++++++++++++++++++ .../platforms/agnostic/gmp/GMPDecoderModule.h | 6 +++ .../agnostic/gmp/GMPVideoDecoder.cpp | 6 +++ modules/libpref/init/all.js | 2 + 9 files changed, 66 insertions(+), 2 deletions(-) diff --git a/browser/app/profile/firefox.js b/browser/app/profile/firefox.js index da322f58c9a3..072fe22937c9 100644 --- a/browser/app/profile/firefox.js +++ b/browser/app/profile/firefox.js @@ -1825,6 +1825,11 @@ pref("ui.key.menuAccessKeyFocuses", true); pref("media.eme.enabled", true); pref("media.eme.apiVisible", true); +// If decoding-via-gmp is turned on for