mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
b=926619 check for non-AudioNodeStreams in MediaStream cycles r=padenot
--HG-- extra : transplant_source : %2B%F4%EEG%BD%17%2A/%B7%80%F6%22%04%9F%F4E%1FD%F0%A5
This commit is contained in:
parent
e336f9c09e
commit
9bf08ddb64
@ -499,16 +499,18 @@ MediaStreamGraphImpl::UpdateStreamOrderForStream(mozilla::LinkedList<MediaStream
|
||||
// mute all nodes we find, or just mute the node itself.
|
||||
if (!iter) {
|
||||
// The node is connected to itself.
|
||||
// There can't be a non-AudioNodeStream here, because only AudioNodes
|
||||
// can be self-connected.
|
||||
iter = aStack->getLast();
|
||||
MOZ_ASSERT(iter->AsAudioNodeStream());
|
||||
iter->AsAudioNodeStream()->Mute();
|
||||
} else {
|
||||
MOZ_ASSERT(iter);
|
||||
do {
|
||||
// There can't be non-AudioNodeStream here, MediaStreamAudio{Source,
|
||||
// Destination}Node are connected to regular MediaStreams, but they can't be
|
||||
// in a cycle (there is no content API to do so).
|
||||
MOZ_ASSERT(iter->AsAudioNodeStream());
|
||||
iter->AsAudioNodeStream()->Mute();
|
||||
AudioNodeStream* nodeStream = iter->AsAudioNodeStream();
|
||||
if (nodeStream) {
|
||||
nodeStream->Mute();
|
||||
}
|
||||
} while((iter = iter->getNext()));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user