Bug 1628692 - Prepare dom/media for making FallibleTArray uncopyable. r=jya

Differential Revision: https://phabricator.services.mozilla.com/D72623
This commit is contained in:
Simon Giesecke 2020-04-29 08:42:17 +00:00
parent 6ccae551a7
commit fdc86f4c1e
2 changed files with 3 additions and 3 deletions

View File

@ -2882,7 +2882,7 @@ void TrackBuffersManager::GetDebugInfo(
range->mStart = ranges.Start(i).ToSeconds();
range->mEnd = ranges.End(i).ToSeconds();
}
aInfo.mRanges = items;
aInfo.mRanges = std::move(items);
} else if (HasVideo()) {
aInfo.mNextSampleTime = mVideoTracks.mNextSampleTime.ToSeconds();
aInfo.mNumSamples = mVideoTracks.mBuffers[0].Length();
@ -2901,7 +2901,7 @@ void TrackBuffersManager::GetDebugInfo(
range->mStart = ranges.Start(i).ToSeconds();
range->mEnd = ranges.End(i).ToSeconds();
}
aInfo.mRanges = items;
aInfo.mRanges = std::move(items);
}
}

View File

@ -93,8 +93,8 @@ bool MoofParser::RebuildFragmentedIndex(BoxContext& aContext) {
mMoofs.LastElement().FixRounding(moof);
}
mMoofs.AppendElement(moof);
mMediaRanges.AppendElement(moof.mRange);
mMoofs.AppendElement(std::move(moof));
foundValidMoof = true;
} else if (box.IsType("mdat") && !Moofs().IsEmpty()) {
// Check if we have all our data from last moof.