зеркало из https://github.com/mozilla/gecko-dev.git
Bug 943461. Part 10: Fix and simplify setting of mNextMainThreadFinished. r=padenot
--HG-- extra : rebase_source : 4530688441600d6538cd9a9662466762ca845ff9
This commit is contained in:
Родитель
81d2879137
Коммит
7ba76fee0d
|
@ -1010,9 +1010,7 @@ MediaStreamGraphImpl::PrepareUpdatesToMainThreadState(bool aFinalUpdate)
|
|||
update->mStream = stream;
|
||||
update->mNextMainThreadCurrentTime =
|
||||
GraphTimeToStreamTime(stream, mCurrentTime);
|
||||
update->mNextMainThreadFinished =
|
||||
stream->mFinished &&
|
||||
StreamTimeToGraphTime(stream, stream->GetBufferEnd()) <= mCurrentTime;
|
||||
update->mNextMainThreadFinished = stream->mNotifiedFinished;
|
||||
}
|
||||
if (!mPendingUpdateRunnables.IsEmpty()) {
|
||||
mUpdateRunnables.MoveElementsFrom(mPendingUpdateRunnables);
|
||||
|
|
Загрузка…
Ссылка в новой задаче