зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1230483 - Part 2 - LoadFromSourceChildren() should be queued at most once in an event cycle. r=roc
This commit is contained in:
Родитель
cda9d2e5e1
Коммит
9e2d0d9fab
|
@ -4356,6 +4356,9 @@ void HTMLMediaElement::NotifyAddedSource()
|
|||
// A load was paused in the resource selection algorithm, waiting for
|
||||
// a new source child to be added, resume the resource selection algorithm.
|
||||
if (mLoadWaitStatus == WAITING_FOR_SOURCE) {
|
||||
// Rest the flag so we don't queue multiple LoadFromSourceTask() when
|
||||
// multiple <source> are attached in an event loop.
|
||||
mLoadWaitStatus = NOT_WAITING;
|
||||
QueueLoadFromSourceTask();
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче