mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset ade49a801461 (bug 881959)
This commit is contained in:
parent
e332c5a8a3
commit
20c76f3425
@ -525,22 +525,15 @@ MediaStreamGraphImpl::UpdateStreamOrderForStream(mozilla::LinkedList<MediaStream
|
||||
}
|
||||
if (cycleFound && !delayNodePresent) {
|
||||
// If we have detected a cycle, the previous loop should exit with stream
|
||||
// == iter, or the node is connected to itself. Go back in the cycle and
|
||||
// mute all nodes we find, or just mute the node itself.
|
||||
if (!iter) {
|
||||
// The node is connected to itself.
|
||||
iter = aStack->getLast();
|
||||
// == iter. Go back in the cycle and mute all nodes we find.
|
||||
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();
|
||||
} 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();
|
||||
} while((iter = iter->getNext()));
|
||||
}
|
||||
} while((iter = iter->getNext()));
|
||||
|
||||
// Warn the user that some of the nodes in the graph are muted, but only
|
||||
// once. This flag is reset when the graph changes.
|
||||
|
Loading…
Reference in New Issue
Block a user