зеркало из https://github.com/mozilla/gecko-dev.git
Bug 851986 - Avoid calling a virtual function when getting the source for an AudioNodeStream; r=roc
This commit is contained in:
Родитель
ddf63292e4
Коммит
35d1346376
|
@ -184,8 +184,8 @@ AudioNodeStream::ObtainInputBlock(AudioChunk* aTmpChunk)
|
|||
nsAutoTArray<AudioChunk*,250> inputChunks;
|
||||
for (uint32_t i = 0; i < inputCount; ++i) {
|
||||
MediaStream* s = mInputs[i]->GetSource();
|
||||
AudioNodeStream* a = s->AsAudioNodeStream();
|
||||
MOZ_ASSERT(a);
|
||||
AudioNodeStream* a = static_cast<AudioNodeStream*>(s);
|
||||
MOZ_ASSERT(a == s->AsAudioNodeStream());
|
||||
if (a->IsFinishedOnGraphThread()) {
|
||||
continue;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче