Index: Source/core/html/HTMLMediaElement.cpp |
diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp |
index 5989e22687f9677f46374eca682cd28eec45fbd8..ff1b5ae54759f40339e633234b649de8233e9f9c 100644 |
--- a/Source/core/html/HTMLMediaElement.cpp |
+++ b/Source/core/html/HTMLMediaElement.cpp |
@@ -1826,7 +1826,7 @@ HTMLMediaElement::ReadyState HTMLMediaElement::readyState() const |
bool HTMLMediaElement::hasAudio() const |
{ |
- return m_player ? m_player->hasAudio() : false; |
+ return webMediaPlayer() && webMediaPlayer()->hasAudio(); |
} |
bool HTMLMediaElement::seeking() const |
@@ -3244,16 +3244,16 @@ void HTMLMediaElement::setClosedCaptionsVisible(bool closedCaptionVisible) |
unsigned HTMLMediaElement::webkitAudioDecodedByteCount() const |
{ |
- if (!m_player) |
+ if (!webMediaPlayer()) |
return 0; |
- return m_player->audioDecodedByteCount(); |
+ return webMediaPlayer()->audioDecodedByteCount(); |
} |
unsigned HTMLMediaElement::webkitVideoDecodedByteCount() const |
{ |
- if (!m_player) |
+ if (!webMediaPlayer()) |
return 0; |
- return m_player->videoDecodedByteCount(); |
+ return webMediaPlayer()->videoDecodedByteCount(); |
} |
bool HTMLMediaElement::isURLAttribute(const Attribute& attribute) const |