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

Unified Diff: Source/core/html/HTMLMediaElement.cpp

Issue 23658042: Merge 157259 "Fix threading races on WebAudioSourceProviderImpl:..." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/1599/
Patch Set: Created 7 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/core/html/HTMLMediaElement.cpp
===================================================================
--- Source/core/html/HTMLMediaElement.cpp (revision 157693)
+++ Source/core/html/HTMLMediaElement.cpp (working copy)
@@ -343,6 +343,10 @@
// See http://crbug.com/233654 for more details.
m_completelyLoaded = true;
m_player.clear();
+#if ENABLE(WEB_AUDIO)
+ if (audioSourceProvider())
+ audioSourceProvider()->setClient(0);
+#endif
}
void HTMLMediaElement::didMoveToNewDocument(Document* oldDocument)
@@ -3446,6 +3450,10 @@
closeMediaSource();
m_player.clear();
+#if ENABLE(WEB_AUDIO)
+ if (audioSourceProvider())
+ audioSourceProvider()->setClient(0);
+#endif
stopPeriodicTimers();
m_loadTimer.stop();
« 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