Index: Source/core/html/HTMLMediaElement.cpp |
diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp |
index 113582a4983cf06f4aae571acc0da01ef3fe46e5..b9e0507ab40e0ac96921939227c7c504b17800ad 100644 |
--- a/Source/core/html/HTMLMediaElement.cpp |
+++ b/Source/core/html/HTMLMediaElement.cpp |
@@ -3174,8 +3174,12 @@ PassRefPtr<TimeRanges> HTMLMediaElement::played() |
PassRefPtr<TimeRanges> HTMLMediaElement::seekable() const |
{ |
- double maxSeekable = maxTimeSeekable(); |
- return maxSeekable ? TimeRanges::create(0, maxSeekable) : TimeRanges::create(); |
+ if (m_player) { |
+ double maxTimeSeekable = m_player->maxTimeSeekable(); |
+ if (maxTimeSeekable) |
+ return TimeRanges::create(0, maxTimeSeekable); |
+ } |
+ return TimeRanges::create(); |
} |
bool HTMLMediaElement::potentiallyPlaying() const |
@@ -3237,16 +3241,6 @@ bool HTMLMediaElement::pausedForUserInteraction() const |
return false; |
} |
-double HTMLMediaElement::minTimeSeekable() const |
-{ |
- return 0; |
-} |
- |
-double HTMLMediaElement::maxTimeSeekable() const |
-{ |
- return m_player ? m_player->maxTimeSeekable() : 0; |
-} |
- |
void HTMLMediaElement::updateVolume() |
{ |
if (!m_player) |