Bug 1123535 - Enable dormant heuristic for MP4Reader. r=kentuckyfriedtakahe a=sledru
💩💩 backed out by bbc98a8c8142 💩 💩
authorChris Pearce <cpearce@mozilla.com>
Thu, 29 Jan 2015 21:50:48 +1300
changeset 243611 f94e2c0e2971
parent 243610 e884a5b5ff18
child 243612 1192f29eb59a
push id4415
push userrgiles@mozilla.com
push date2015-02-01 19:08 +0000
treeherdermozilla-beta@1192f29eb59a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskentuckyfriedtakahe, sledru
bugs1123535
milestone36.0
Bug 1123535 - Enable dormant heuristic for MP4Reader. r=kentuckyfriedtakahe a=sledru
modules/libpref/init/all.js
testing/profiles/prefs_general.js
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -250,16 +250,21 @@ pref("media.volume_scale", "1.0");
 
 // Timeout for wakelock release
 pref("media.wakelock_timeout", 2000);
 
 // Whether we should play videos opened in a "video document", i.e. videos
 // opened as top-level documents, as opposed to inside a media element.
 pref("media.play-stand-alone", true);
 
+#if defined(XP_WIN)
+pref("media.decoder.heuristic.dormant.enabled", true);
+pref("media.decoder.heuristic.dormant.timeout", 60000);
+#endif
+
 #ifdef MOZ_WMF
 pref("media.windows-media-foundation.enabled", true);
 pref("media.windows-media-foundation.use-dxva", true);
 #endif
 #ifdef MOZ_DIRECTSHOW
 pref("media.directshow.enabled", true);
 #endif
 #ifdef MOZ_FMP4
--- a/testing/profiles/prefs_general.js
+++ b/testing/profiles/prefs_general.js
@@ -274,12 +274,16 @@ user_pref("browser.uitour.url", "http://
 user_pref("browser.search.highlightCount", 0);
 // Tell the search service we are running in the US.  This also has the desired
 // side-effect of preventing our geoip lookup.
 user_pref("browser.search.isUS", true);
 user_pref("browser.search.countryCode", "US");
 
 user_pref("media.eme.enabled", true);
 
+#if defined(XP_WIN)
+user_pref("media.decoder.heuristic.dormant.timeout", 0);
+#endif
+
 // Don't prompt about e10s
 user_pref("browser.displayedE10SPrompt.1", 5);
 // Don't use auto-enabled e10s
 user_pref("browser.tabs.remote.autostart.1", false);