Bug 1163958 - Reduce the allocation in MediaStreamGraph - patch 3 CLOSED TREE

This commit is contained in:
Andrea Marchesini 2015-05-13 16:07:16 +01:00
Родитель a1ae658f56
Коммит 8daa9e6963
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -81,6 +81,10 @@ StreamBuffer::FindTrack(TrackID aID)
}
if (mTracks[middle]->GetID() > aID) {
if (middle == 0) {
break;
}
right = middle - 1;
} else {
left = middle + 1;