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

Unified Diff: media/blink/webmediaplayer_impl.cc

Issue 2353803002: Reset underflow count upon seek event. (Closed)
Patch Set: Created 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/webmediaplayer_impl.cc
diff --git a/media/blink/webmediaplayer_impl.cc b/media/blink/webmediaplayer_impl.cc
index e45cd648575e075f2ac993ac0199e9ca82227a3d..4fa8e7663fe67b9d25766a397a0710458ec13b83 100644
--- a/media/blink/webmediaplayer_impl.cc
+++ b/media/blink/webmediaplayer_impl.cc
@@ -989,6 +989,10 @@ void WebMediaPlayerImpl::OnPipelineSeeked(bool time_updated) {
}
if (time_updated)
should_notify_time_changed_ = true;
+
+ // Reset underflow count upon seek; this prevents looping videos and user
+ // actions from artificially inflating the underflow count.
+ underflow_count_ = 0;
}
void WebMediaPlayerImpl::OnPipelineSuspended() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698