| Index: media/base/pipeline.cc
|
| diff --git a/media/base/pipeline.cc b/media/base/pipeline.cc
|
| index 71239305ec3c6ff09eeb84b7ee6e2fc6b862f7c5..8e73420091d4c4fbe1848ae344776f30a13544a2 100644
|
| --- a/media/base/pipeline.cc
|
| +++ b/media/base/pipeline.cc
|
| @@ -634,8 +634,12 @@ void Pipeline::OnStopCompleted(PipelineStatus status) {
|
| error_cb_.Reset();
|
| }
|
| if (!stop_cb_.is_null()) {
|
| - base::ResetAndReturn(&stop_cb_).Run();
|
| error_cb_.Reset();
|
| + base::ResetAndReturn(&stop_cb_).Run();
|
| +
|
| + // NOTE: pipeline may be deleted at this point in time as a result of
|
| + // executing |stop_cb_|.
|
| + return;
|
| }
|
| if (!error_cb_.is_null()) {
|
| DCHECK_NE(status_, PIPELINE_OK);
|
|
|