| Index: media/test/pipeline_integration_test_base.cc
|
| diff --git a/media/test/pipeline_integration_test_base.cc b/media/test/pipeline_integration_test_base.cc
|
| index 56b50871ca286d3a983f411d4bfbb94f57520903..42e3511c142709c62da8dfb436d9333888dd5288 100644
|
| --- a/media/test/pipeline_integration_test_base.cc
|
| +++ b/media/test/pipeline_integration_test_base.cc
|
| @@ -53,10 +53,11 @@ PipelineIntegrationTestBase::PipelineIntegrationTestBase()
|
| }
|
|
|
| PipelineIntegrationTestBase::~PipelineIntegrationTestBase() {
|
| - if (!pipeline_->IsRunning())
|
| - return;
|
| + if (pipeline_->IsRunning())
|
| + Stop();
|
|
|
| - Stop();
|
| + pipeline_.reset();
|
| + message_loop_.RunUntilIdle();
|
| }
|
|
|
| // TODO(xhwang): Method definitions in this file needs to be reordered.
|
|
|