From 5c3b7276abf0d01b53662f38db5b4d52377343ed Mon Sep 17 00:00:00 2001 From: Mark Weiman Date: Sat, 2 Jan 2016 01:22:31 -0500 Subject: initial commit Signed-off-by: Mark Weiman --- firefox-gtk2/firefox-disable-GMP-PDM.patch | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 firefox-gtk2/firefox-disable-GMP-PDM.patch (limited to 'firefox-gtk2/firefox-disable-GMP-PDM.patch') diff --git a/firefox-gtk2/firefox-disable-GMP-PDM.patch b/firefox-gtk2/firefox-disable-GMP-PDM.patch new file mode 100644 index 0000000..25f7ed5 --- /dev/null +++ b/firefox-gtk2/firefox-disable-GMP-PDM.patch @@ -0,0 +1,34 @@ +# HG changeset patch +# User Jean-Yves Avenard + +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::CreatePDM() + { ++#ifndef RELEASE_BUILD + if (sGMPDecoderEnabled) { + nsRefPtr m(new GMPDecoderModule()); + return m.forget(); + } ++#endif + #ifdef MOZ_WIDGET_ANDROID + if(sAndroidMCDecoderPreferred && sAndroidMCDecoderEnabled){ + nsRefPtr m(new AndroidDecoderModule()); + return m.forget(); + } + #endif + if (sUseBlankDecoder) { + return CreateBlankDecoderModule(); -- cgit v1.3