summaryrefslogtreecommitdiff
path: root/libre/iceweasel/iceweasel-disable-GMP-PDM.patch
blob: 25f7ed5d4f7a7cff7873676cddfc919aba4ecf5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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();