Bug 1341221 - enable rust mp4 parser on linux debug build. r?kinetik draft
authorAlfredo.Yang <ayang@mozilla.com>
Sun, 26 Mar 2017 23:19:49 +0800
changeset 552164 89126d3dbc7029aa6c19b260eaa68ad9fdd9a437
parent 552146 5182b2c4b963ed87d038c7d9a4021463917076cd
child 621739 56b3fea4f2c9ad36779a55bf6bdff1ba6e428d91
push id51266
push userbmo:ayang@mozilla.com
push dateTue, 28 Mar 2017 03:13:30 +0000
reviewerskinetik
bugs1341221
milestone55.0a1
Bug 1341221 - enable rust mp4 parser on linux debug build. r?kinetik MozReview-Commit-ID: DSkDsDpz0uO
dom/media/MediaPrefs.h
--- a/dom/media/MediaPrefs.h
+++ b/dom/media/MediaPrefs.h
@@ -165,17 +165,21 @@ private:
   // Flac
   DECL_MEDIA_PREF("media.ogg.flac.enabled",                   FlacInOgg, bool, false);
   DECL_MEDIA_PREF("media.flac.enabled",                       FlacEnabled, bool, true);
 
 #if !defined(RELEASE_OR_BETA)
   DECL_MEDIA_PREF("media.rust.test_mode",                     RustTestMode, bool, false);
 #endif
 
+#if defined(OS_LINUX) && defined(DEBUG)
+  DECL_MEDIA_PREF("media.rust.mp4parser",                     EnableRustMP4Parser, bool, true);
+#else
   DECL_MEDIA_PREF("media.rust.mp4parser",                     EnableRustMP4Parser, bool, false);
+#endif
 
 public:
   // Manage the singleton:
   static MediaPrefs& GetSingleton();
   static bool SingletonExists();
 
 private:
   template<class T> friend class StaticAutoPtr;