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

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

Issue 88183002: HTMLMediaElement::clearMediaPlayer should acquire MediaElementAudioSourceNode::lock() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 1ec05752e7c4a890ae99b8c952484f91a02a8b54..22cc1fb69490d2a9b4926b75c74430513d5fd409 100644
--- a/Source/core/html/HTMLMediaElement.cpp
+++ b/Source/core/html/HTMLMediaElement.cpp
@@ -3385,6 +3385,11 @@ void HTMLMediaElement::userCancelledLoad()
void HTMLMediaElement::clearMediaPlayer(int flags)
{
+#if ENABLE(WEB_AUDIO)
+ if (m_audioSourceNode)
+ m_audioSourceNode->lock();
Ken Russell (switch to Gerrit) 2013/11/26 20:09:24 The manual calls to lock() and unlock() are unfort
+#endif
+
removeAllInbandTracks();
closeMediaSource();
@@ -3394,6 +3399,12 @@ void HTMLMediaElement::clearMediaPlayer(int flags)
if (audioSourceProvider())
audioSourceProvider()->setClient(0);
acolwell GONE FROM CHROMIUM 2013/11/26 16:08:58 How does this ever get executed? Doesn't audioSour
DaleCurtis 2013/11/26 18:36:15 Hah, wow, yeah that's true even in the original CL
Ken Russell (switch to Gerrit) 2013/11/26 20:09:24 This should be fixed, and further, HTMLMediaElemen
haraken 2013/11/27 01:10:29 Done.
#endif
+
+#if ENABLE(WEB_AUDIO)
acolwell GONE FROM CHROMIUM 2013/11/26 16:08:58 nit: Remove this line and the #endif right above i
haraken 2013/11/27 01:10:29 Done.
+ if (m_audioSourceNode)
+ m_audioSourceNode->unlock();
+#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