зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1628692 - Prepare dom/media for making FallibleTArray uncopyable. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D72623
This commit is contained in:
Родитель
6ccae551a7
Коммит
fdc86f4c1e
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче