Bug 1192097: [MSE] P3. Add logging for when insertion index is reset. r=gerald
authorJean-Yves Avenard <jyavenard@mozilla.com>
Fri, 07 Aug 2015 12:16:51 +1000
changeset 288486 aab68c0d752cfc01c6116809801ca3082acfd0b7
parent 288485 cadd7469af415f725522a84a06f0adfcac64e238
child 288487 385c98a22e6fed459fc20cf40cfaa8ccdbccd7c4
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgerald
bugs1192097
milestone42.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 1192097: [MSE] P3. Add logging for when insertion index is reset. r=gerald
dom/media/mediasource/TrackBuffersManager.cpp
--- a/dom/media/mediasource/TrackBuffersManager.cpp
+++ b/dom/media/mediasource/TrackBuffersManager.cpp
@@ -1639,16 +1639,17 @@ TrackBuffersManager::RemoveFrames(const 
         lastRemovedIndex - firstRemovedIndex.ref() + 1;
     }
   }
 
   if (aTrackData.mNextInsertionIndex.isSome()) {
     if (aTrackData.mNextInsertionIndex.ref() > firstRemovedIndex.ref() &&
         aTrackData.mNextInsertionIndex.ref() <= lastRemovedIndex + 1) {
       aTrackData.ResetAppendState();
+      MSE_DEBUG("NextInsertionIndex got reset.");
     } else if (aTrackData.mNextInsertionIndex.ref() > lastRemovedIndex + 1) {
       aTrackData.mNextInsertionIndex.ref() -=
         lastRemovedIndex - firstRemovedIndex.ref() + 1;
     }
   }
 
   // Update our buffered range to exclude the range just removed.
   aTrackData.mBufferedRanges -= removedIntervals;