зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
d67c40c19f
Коммит
adcff7f912
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче