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

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

Issue 23691033: Fix threading races on WebAudioSourceProviderImpl::provideInput (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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..f2207e6ff96235a08162b46c3ec2da9be2998992 100644
--- a/Source/core/html/HTMLMediaElement.cpp
+++ b/Source/core/html/HTMLMediaElement.cpp
@@ -343,6 +343,8 @@ HTMLMediaElement::~HTMLMediaElement()
// See http://crbug.com/233654 for more details.
m_completelyLoaded = true;
m_player.clear();
+ if (audioSourceProvider())
DaleCurtis 2013/09/04 22:33:09 Both of these need protection via #if ENABLE(WEB_A
+ audioSourceProvider()->setClient(0);
}
void HTMLMediaElement::didMoveToNewDocument(Document* oldDocument)
@@ -3454,6 +3456,8 @@ void HTMLMediaElement::clearMediaPlayer(int flags)
closeMediaSource();
m_player.clear();
+ if (audioSourceProvider())
+ audioSourceProvider()->setClient(0);
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