Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2103)

Unified Diff: Source/modules/webaudio/AudioNodeOutput.cpp

Issue 558523002: AudioNodeOutput::enable() and AudioNodeOutput::disable() should not be reentered (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/AudioNodeOutput.cpp
diff --git a/Source/modules/webaudio/AudioNodeOutput.cpp b/Source/modules/webaudio/AudioNodeOutput.cpp
index 773f011ab938f72e334c97493222f5a23279f784..d1fd4a1aee0fd3a1cd0b2520e9348a6d723838c4 100644
--- a/Source/modules/webaudio/AudioNodeOutput.cpp
+++ b/Source/modules/webaudio/AudioNodeOutput.cpp
@@ -222,9 +222,9 @@ void AudioNodeOutput::disable()
ASSERT(context()->isGraphOwner());
if (m_isEnabled) {
+ m_isEnabled = false;
for (InputsIterator i = m_inputs.begin(); i != m_inputs.end(); ++i)
i->key->disable(*this);
- m_isEnabled = false;
}
}
@@ -233,9 +233,9 @@ void AudioNodeOutput::enable()
ASSERT(context()->isGraphOwner());
if (!m_isEnabled) {
+ m_isEnabled = true;
for (InputsIterator i = m_inputs.begin(); i != m_inputs.end(); ++i)
i->key->enable(*this);
- m_isEnabled = true;
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698