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

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: Comments. 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/TimeRanges.h » ('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 297200ac63334d0e5ee4d36028048b6a16e59a94..a709141682132ddc3829fd251ecc4500baed28bc 100644
--- a/Source/core/html/HTMLMediaElement.cpp
+++ b/Source/core/html/HTMLMediaElement.cpp
@@ -1992,7 +1992,7 @@ void HTMLMediaElement::seek(double time)
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/TimeRanges.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698