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

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

Issue 23969007: Fix threading races on WebAudioSourceProviderImpl::provideInput (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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
diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp
index 719d388704c908c3a68a8c9e1e54cd295fd7447a..a9b98e35e2ff94a6068766ec05b510b8ab92e4d7 100644
--- a/Source/core/html/HTMLMediaElement.cpp
+++ b/Source/core/html/HTMLMediaElement.cpp
@@ -343,6 +343,10 @@ HTMLMediaElement::~HTMLMediaElement()
// 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)
@@ -3454,6 +3458,10 @@ void HTMLMediaElement::clearMediaPlayer(int flags)
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