Bug 1276572: [webm] Fix MediaRawDataQueue::PushFront. r=jwwang

We want to add MediaRawDataQueue aOther at the front, not at the back.

MozReview-Commit-ID: 9icTWzRqS4u

--HG--
extra : rebase_source : 2713cbe952461c520a420925040be2de257f0596
This commit is contained in:
Jean-Yves Avenard 2016-05-30 19:17:03 +10:00
Родитель d67c40c19f
Коммит adcff7f912
1 изменённых файлов: 7 добавлений и 1 удалений

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

@ -42,7 +42,7 @@ class MediaRawDataQueue {
void PushFront(MediaRawDataQueue&& aOther) {
while (!aOther.mQueue.empty()) {
Push(aOther.PopFront());
PushFront(aOther.Pop());
}
}
@ -52,6 +52,12 @@ class MediaRawDataQueue {
return result.forget();
}
already_AddRefed<MediaRawData> Pop() {
RefPtr<MediaRawData> result = mQueue.back().forget();
mQueue.pop_back();
return result.forget();
}
void Reset() {
while (!mQueue.empty()) {
mQueue.pop_front();