Bug 1524049 - pref on vorbis decoding on RDD process. r=drno
☠☠ backed out by d8b49bdcea45 ☠ ☠
authorMichael Froman <mfroman@mozilla.com>
Thu, 21 Feb 2019 16:30:13 +0000
changeset 460290 8704f4b3c8c0d4530e89c138755919db48ac606e
parent 460289 7fc962a9fa04ebe917088b1defeab770febe4c9b
child 460291 ad3aad4f529e03a71ffb4b401a33362d84ba9cd6
push id78665
push usermfroman@mozilla.com
push dateThu, 21 Feb 2019 16:31:17 +0000
treeherderautoland@8704f4b3c8c0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdrno
bugs1524049
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1524049 - pref on vorbis decoding on RDD process. r=drno Differential Revision: https://phabricator.services.mozilla.com/D20607
modules/libpref/init/StaticPrefList.h
--- a/modules/libpref/init/StaticPrefList.h
+++ b/modules/libpref/init/StaticPrefList.h
@@ -1215,21 +1215,29 @@ VARCACHE_PREF(
 #undef PREF_VALUE
 
 VARCACHE_PREF(
   "media.rdd-process.startup_timeout_ms",
    MediaRddProcessStartupTimeoutMs,
   RelaxedAtomicInt32, 5000
 )
 
+#if defined(XP_WIN) && !defined(_ARM64_)
+# define PREF_VALUE true
+#elif defined(XP_MACOSX)
+# define PREF_VALUE true
+#else
+# define PREF_VALUE false
+#endif
 VARCACHE_PREF(
   "media.rdd-vorbis.enabled",
    MediaRddVorbisEnabled,
-  RelaxedAtomicBool, false
+  RelaxedAtomicBool, PREF_VALUE
 )
+#undef PREF_VALUE
 
 #ifdef ANDROID
 
 // Enable the MediaCodec PlatformDecoderModule by default.
 VARCACHE_PREF(
   "media.android-media-codec.enabled",
    MediaAndroidMediaCodecEnabled,
   RelaxedAtomicBool, true