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

Unified Diff: media/blink/webmediaplayer_impl.cc

Issue 1827873003: media: Cancel any pending pipeline restart when the player is hidden (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 3855a74e34f14b176ba8dfeaad0e6d17eab9d3d3..3b93924a62565c8d01e0a02817604e52fc1d149e 100644
--- a/media/blink/webmediaplayer_impl.cc
+++ b/media/blink/webmediaplayer_impl.cc
@@ -1082,6 +1082,9 @@ void WebMediaPlayerImpl::OnHidden() {
// prevent an idle network connection from lingering.
setBufferingStrategy(WebMediaPlayer::BufferingStrategy::Normal);
pipeline_controller_.Suspend();
+ // If we're in the middle of a suspend/resume cycle we no longer want to
+ // resume when the suspend completes.
+ pending_suspend_resume_cycle_ = false;
if (delegate_)
delegate_->PlayerGone(delegate_id_);
}
« 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