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

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

Issue 694993003: Move logic that sets variable m_isInitialized to false before stop destination. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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/AudioContext.cpp
diff --git a/Source/modules/webaudio/AudioContext.cpp b/Source/modules/webaudio/AudioContext.cpp
index 39f6180ad733c492b35a46d1548be2d553d54d1e..08a62ee72ced595941fd3a0a7d2368d7237fd161 100644
--- a/Source/modules/webaudio/AudioContext.cpp
+++ b/Source/modules/webaudio/AudioContext.cpp
@@ -187,6 +187,8 @@ void AudioContext::uninitialize()
if (!isInitialized())
return;
+ m_isInitialized = false;
+
// This stops the audio thread and all audio rendering.
m_destinationNode->uninitialize();
@@ -198,7 +200,6 @@ void AudioContext::uninitialize()
// Get rid of the sources which may still be playing.
derefUnfinishedSourceNodes();
- m_isInitialized = false;
clear();
}
« 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