Bug 1123535 - Enable dormant heuristic for MP4Reader. r=kentuckyfriedtakahe
☠☠ backed out by a0494361053f ☠ ☠
authorChris Pearce <cpearce@mozilla.com>
Tue, 27 Jan 2015 19:30:11 +1300
changeset 239296 7348cb10d7b0282075aef7ed8313c901bac34c68
parent 239295 cdcfd5fda7b4ce42796028220b02b0d282c7745f
child 239297 f6da914b2a93eea675e1eb9a5b458970db07ab7f
push id497
push usermleibovic@mozilla.com
push dateWed, 28 Jan 2015 16:43:37 +0000
reviewerskentuckyfriedtakahe
bugs1123535
milestone38.0a1
Bug 1123535 - Enable dormant heuristic for MP4Reader. r=kentuckyfriedtakahe
modules/libpref/init/all.js
testing/profiles/prefs_general.js
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -257,16 +257,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
@@ -279,14 +279,18 @@ 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);
 // Don't forceably kill content processes after a timeout
 user_pref("dom.ipc.tabs.shutdownTimeoutSecs", 0);