Index: Source/core/html/HTMLMediaElement.cpp |
diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp |
index 70b17b45a3cd8bb61e5e51cae5f61c58b2e6c2eb..3cb8fbc9859bcc0e51a6189e667a263b99fa058e 100644 |
--- a/Source/core/html/HTMLMediaElement.cpp |
+++ b/Source/core/html/HTMLMediaElement.cpp |
@@ -3290,12 +3290,10 @@ PassRefPtrWillBeRawPtr<TimeRanges> HTMLMediaElement::played() |
PassRefPtrWillBeRawPtr<TimeRanges> HTMLMediaElement::seekable() const |
{ |
- if (webMediaPlayer()) { |
- double maxTimeSeekable = webMediaPlayer()->maxTimeSeekable(); |
- if (maxTimeSeekable) |
- return TimeRanges::create(0, maxTimeSeekable); |
- } |
- return TimeRanges::create(); |
+ if (!webMediaPlayer()) |
+ return TimeRanges::create(); |
+ |
+ return TimeRanges::create(webMediaPlayer()->seekable()); |
} |
bool HTMLMediaElement::potentiallyPlaying() const |