Index: Source/core/html/HTMLMediaElement.cpp |
diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp |
index 47e62a65b6ab2a764e5c27369bedde49c86df3c5..46ed1fc6c3a364bd3da4d77c3ae027f6635c73b8 100644 |
--- a/Source/core/html/HTMLMediaElement.cpp |
+++ b/Source/core/html/HTMLMediaElement.cpp |
@@ -3072,8 +3072,7 @@ void HTMLMediaElement::userCancelledLoad() |
void HTMLMediaElement::clearMediaPlayerAndAudioSourceProviderClientWithoutLocking() |
{ |
#if ENABLE(WEB_AUDIO) |
- if (audioSourceProvider()) |
- audioSourceProvider()->setClient(nullptr); |
+ audioSourceProvider().setClient(nullptr); |
#endif |
if (m_webMediaPlayer) { |
m_audioSourceProvider.wrap(nullptr); |
@@ -3506,7 +3505,7 @@ void HTMLMediaElement::resetMediaPlayerAndMediaSource() |
#if ENABLE(WEB_AUDIO) |
if (m_audioSourceNode) |
- audioSourceProvider()->setClient(m_audioSourceNode); |
+ audioSourceProvider().setClient(m_audioSourceNode); |
#endif |
} |
@@ -3517,8 +3516,7 @@ void HTMLMediaElement::setAudioSourceNode(AudioSourceProviderClient* sourceNode) |
m_audioSourceNode = sourceNode; |
AudioSourceProviderClientLockScope scope(*this); |
- if (audioSourceProvider()) |
- audioSourceProvider()->setClient(m_audioSourceNode); |
+ audioSourceProvider().setClient(m_audioSourceNode); |
} |
#endif |
@@ -3726,8 +3724,8 @@ void HTMLMediaElement::selectInitialTracksIfNecessary() |
#if ENABLE(WEB_AUDIO) |
void HTMLMediaElement::clearWeakMembers(Visitor* visitor) |
{ |
- if (!Heap::isHeapObjectAlive(m_audioSourceNode) && audioSourceProvider()) |
- audioSourceProvider()->setClient(nullptr); |
+ if (!Heap::isHeapObjectAlive(m_audioSourceNode)) |
+ audioSourceProvider().setClient(nullptr); |
} |
void HTMLMediaElement::AudioSourceProviderImpl::wrap(WebAudioSourceProvider* provider) |