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

Unified Diff: content/renderer/media/webmediaplayer_ms.cc

Issue 2445533002: Don't suspend the pipeline before HaveFutureData while decoding progressing (Closed)
Patch Set: fix compiler error from rebase Created 4 years, 1 month 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 | « content/renderer/media/webmediaplayer_ms.h ('k') | media/blink/webmediaplayer_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/webmediaplayer_ms.cc
diff --git a/content/renderer/media/webmediaplayer_ms.cc b/content/renderer/media/webmediaplayer_ms.cc
index c8b28aaff1e5f06549949902a3d67ae2d1a340fc..e832e2cd8ac46e5c86fac9b69ed766c64d71b2e6 100644
--- a/content/renderer/media/webmediaplayer_ms.cc
+++ b/content/renderer/media/webmediaplayer_ms.cc
@@ -421,10 +421,10 @@ void WebMediaPlayerMS::OnShown() {
#endif // defined(OS_ANDROID)
}
-void WebMediaPlayerMS::OnSuspendRequested(bool must_suspend) {
+bool WebMediaPlayerMS::OnSuspendRequested(bool must_suspend) {
#if defined(OS_ANDROID)
if (!must_suspend)
- return;
+ return false;
if (!paused_) {
pause();
@@ -436,6 +436,7 @@ void WebMediaPlayerMS::OnSuspendRequested(bool must_suspend) {
render_frame_suspended_ = true;
#endif
+ return true;
}
void WebMediaPlayerMS::OnPlay() {
« no previous file with comments | « content/renderer/media/webmediaplayer_ms.h ('k') | media/blink/webmediaplayer_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698