Index: Source/core/html/HTMLMediaElement.cpp |
diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp |
index 7cd2dc4cc92ece16d62049cf04c3bcc2519c80a1..83491589cd1c298011a33a6038c383fb5484ad6a 100644 |
--- a/Source/core/html/HTMLMediaElement.cpp |
+++ b/Source/core/html/HTMLMediaElement.cpp |
@@ -639,8 +639,6 @@ void HTMLMediaElement::prepareForLoad() |
if (m_networkState == NETWORK_LOADING || m_networkState == NETWORK_IDLE) |
scheduleEvent(EventTypeNames::abort); |
- closeMediaSource(); |
- |
createMediaPlayer(); |
// 4 - If the media element's networkState is not set to NETWORK_EMPTY, then run these substeps |
@@ -3404,8 +3402,7 @@ void HTMLMediaElement::createMediaPlayer() |
m_audioSourceNode->lock(); |
#endif |
- if (m_mediaSource) |
- closeMediaSource(); |
+ closeMediaSource(); |
m_player = MediaPlayer::create(this); |