Bug 1324306: [MSE] Bump audio memory threshold to 20MB. r=gerald. a=gchang
authorJean-Yves Avenard <jyavenard@mozilla.com>
Mon, 19 Dec 2016 20:17:50 +1100
changeset 455663 40e863f1e8180487fa1011ed6ac807a30905d617
parent 455662 5cfa37b18bd779738a1793f83c20d7198b4dceff
child 455664 2748ea683e9ccf7b3c742539f73a5565f4998fdc
push id40304
push userbmo:wpan@mozilla.com
push dateWed, 04 Jan 2017 10:03:07 +0000
reviewersgerald, gchang
bugs1324306
milestone52.0a2
Bug 1324306: [MSE] Bump audio memory threshold to 20MB. r=gerald. a=gchang MozReview-Commit-ID: LSAv3ujW2TX
dom/media/mediasource/TrackBuffersManager.cpp
--- a/dom/media/mediasource/TrackBuffersManager.cpp
+++ b/dom/media/mediasource/TrackBuffersManager.cpp
@@ -95,17 +95,17 @@ TrackBuffersManager::TrackBuffersManager
   , mParser(ContainerParser::CreateForMIMEType(aType))
   , mProcessedInput(0)
   , mTaskQueue(aParentDecoder->GetDemuxer()->GetTaskQueue())
   , mParentDecoder(new nsMainThreadPtrHolder<MediaSourceDecoder>(aParentDecoder, false /* strict */))
   , mEnded(false)
   , mVideoEvictionThreshold(Preferences::GetUint("media.mediasource.eviction_threshold.video",
                                                  100 * 1024 * 1024))
   , mAudioEvictionThreshold(Preferences::GetUint("media.mediasource.eviction_threshold.audio",
-                                                 12 * 1024 * 1024))
+                                                 20 * 1024 * 1024))
   , mEvictionState(EvictionState::NO_EVICTION_NEEDED)
   , mMonitor("TrackBuffersManager")
 {
   MOZ_ASSERT(NS_IsMainThread(), "Must be instanciated on the main thread");
 }
 
 TrackBuffersManager::~TrackBuffersManager()
 {