Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(806)

Unified Diff: Source/core/html/HTMLMediaElement.cpp

Issue 559993004: Fix TimeRanges::nearest() to actually calculate nearest time. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/html/TimeRanges.h » ('j') | Source/core/html/TimeRangesTest.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLMediaElement.cpp
diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp
index 2a8bc6b446321e6740ccabdf0c2f7afa8509fcaa..81b266d99353828b3618ca9791cd28ea420c22f7 100644
--- a/Source/core/html/HTMLMediaElement.cpp
+++ b/Source/core/html/HTMLMediaElement.cpp
@@ -1989,7 +1989,7 @@ void HTMLMediaElement::seek(double time, ExceptionState& exceptionState)
m_seeking = false;
return;
}
- time = seekableRanges->nearest(time);
+ time = seekableRanges->nearest(time, now);
if (m_playing) {
if (m_lastSeekTime < now)
« no previous file with comments | « no previous file | Source/core/html/TimeRanges.h » ('j') | Source/core/html/TimeRangesTest.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698