mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 09:15:35 +00:00
Bug 1628692 - Prepare dom/media for making FallibleTArray uncopyable. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D72623
This commit is contained in:
parent
6ccae551a7
commit
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.
|
||||
|
Loading…
Reference in New Issue
Block a user