diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-01-08 13:36:10 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-01-08 13:37:38 -0300 |
commit | 5c1b7fc1ec6af84df4b984ab8ca24561cff39b84 (patch) | |
tree | 04456cf694f753b24b23e3bb5329c3f06b18201b /libre/iceweasel/iceweasel-disable-GMP-PDM.patch | |
parent | bc834d6132656b78dd8a9d5983b321b87a782d15 (diff) | |
download | abslibre-5c1b7fc1ec6af84df4b984ab8ca24561cff39b84.tar.gz abslibre-5c1b7fc1ec6af84df4b984ab8ca24561cff39b84.tar.bz2 abslibre-5c1b7fc1ec6af84df4b984ab8ca24561cff39b84.zip |
iceweasel-1:43.0.4.deb1-1: updating version
Diffstat (limited to 'libre/iceweasel/iceweasel-disable-GMP-PDM.patch')
-rw-r--r-- | libre/iceweasel/iceweasel-disable-GMP-PDM.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/libre/iceweasel/iceweasel-disable-GMP-PDM.patch b/libre/iceweasel/iceweasel-disable-GMP-PDM.patch new file mode 100644 index 000000000..25f7ed5d4 --- /dev/null +++ b/libre/iceweasel/iceweasel-disable-GMP-PDM.patch @@ -0,0 +1,34 @@ +# HG changeset patch +# User Jean-Yves Avenard <jyavenard@mozilla.com> + +Bug 1233429: Disable GMP PDM. r=cpearce + +Prevent users from shooting themselves in the foot by turning some prefs on. + +diff --git a/dom/media/platforms/PlatformDecoderModule.cpp b/dom/media/platforms/PlatformDecoderModule.cpp +index 530c7b9..50933ca 100644 +--- a/dom/media/platforms/PlatformDecoderModule.cpp ++++ b/dom/media/platforms/PlatformDecoderModule.cpp +@@ -150,20 +150,22 @@ PlatformDecoderModule::Create() + } + return CreateAgnosticDecoderModule(); + } + + /* static */ + already_AddRefed<PlatformDecoderModule> + PlatformDecoderModule::CreatePDM() + { ++#ifndef RELEASE_BUILD + if (sGMPDecoderEnabled) { + nsRefPtr<PlatformDecoderModule> m(new GMPDecoderModule()); + return m.forget(); + } ++#endif + #ifdef MOZ_WIDGET_ANDROID + if(sAndroidMCDecoderPreferred && sAndroidMCDecoderEnabled){ + nsRefPtr<PlatformDecoderModule> m(new AndroidDecoderModule()); + return m.forget(); + } + #endif + if (sUseBlankDecoder) { + return CreateBlankDecoderModule(); |