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

Unified Diff: media/blink/webmediaplayer_impl.cc

Issue 1813373003: Release media session and power save blockers for casting. (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 64a44f770d4990fecbb35f8ce4b99328774cdd9f..df41ab2c371504722ad4d0c11466756bd247cafe 100644
--- a/media/blink/webmediaplayer_impl.cc
+++ b/media/blink/webmediaplayer_impl.cc
@@ -883,6 +883,8 @@ void WebMediaPlayerImpl::OnPipelineSeeked(bool time_updated) {
void WebMediaPlayerImpl::OnPipelineSuspended() {
#if defined(OS_ANDROID)
if (isRemote()) {
+ if (delegate_)
+ delegate_->PlayerGone(delegate_id_);
hubbe 2016/03/18 21:40:24 This doesn't seem right. The browser side already
DaleCurtis 2016/03/18 21:43:38 AFAICT WMPI::pause() is never called when suspendi
hubbe 2016/03/18 23:09:43 I could have sworn this was working correctly at s
DaleCurtis 2016/03/18 23:22:24 OnPipelineResumed() will restart playback if neces
scoped_refptr<VideoFrame> frame = cast_impl_.GetCastingBanner();
if (frame) {
compositor_->PaintFrameUsingOldRenderingPath(frame);
« 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