| Index: media/blink/webmediaplayer_impl.cc
|
| diff --git a/media/blink/webmediaplayer_impl.cc b/media/blink/webmediaplayer_impl.cc
|
| index 64a44f770d4990fecbb35f8ce4b99328774cdd9f..3855a74e34f14b176ba8dfeaad0e6d17eab9d3d3 100644
|
| --- a/media/blink/webmediaplayer_impl.cc
|
| +++ b/media/blink/webmediaplayer_impl.cc
|
| @@ -938,6 +938,11 @@ void WebMediaPlayerImpl::OnPipelineError(PipelineStatus error) {
|
| if (suppress_destruction_errors_)
|
| return;
|
|
|
| + // Release the delegate for player errors; this drops the media session and
|
| + // avoids idle suspension from ticking.
|
| + if (delegate_)
|
| + delegate_->PlayerGone(delegate_id_);
|
| +
|
| #if defined(OS_ANDROID)
|
| // For 10% of pipeline decode failures log the playback URL. The URL is set
|
| // as the crash-key 'subresource_url' during DoLoad().
|
|
|