зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1163958 - Reduce the allocation in MediaStreamGraph - patch 3 CLOSED TREE
This commit is contained in:
Родитель
a1ae658f56
Коммит
8daa9e6963
|
@ -81,6 +81,10 @@ StreamBuffer::FindTrack(TrackID aID)
|
|||
}
|
||||
|
||||
if (mTracks[middle]->GetID() > aID) {
|
||||
if (middle == 0) {
|
||||
break;
|
||||
}
|
||||
|
||||
right = middle - 1;
|
||||
} else {
|
||||
left = middle + 1;
|
||||
|
|
Загрузка…
Ссылка в новой задаче