| Index: media/blink/webmediaplayer_impl.cc
|
| diff --git a/media/blink/webmediaplayer_impl.cc b/media/blink/webmediaplayer_impl.cc
|
| index 5a2983035b4da72066d08d304c99f2df4506c5a5..dd945208a31874e4324c4981e44d23042dbb86fa 100644
|
| --- a/media/blink/webmediaplayer_impl.cc
|
| +++ b/media/blink/webmediaplayer_impl.cc
|
| @@ -1007,6 +1007,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_);
|
| +
|
| media_log_->AddEvent(media_log_->CreatePipelineErrorEvent(error));
|
|
|
| if (ready_state_ == WebMediaPlayer::ReadyStateHaveNothing) {
|
|
|