| Index: media/filters/pipeline_integration_test_base.cc
|
| diff --git a/media/filters/pipeline_integration_test_base.cc b/media/filters/pipeline_integration_test_base.cc
|
| index a6352868faa6c1b961920a933e3818952ae26103..03bc8aa1113636172043ad43df1f994f46dbe949 100644
|
| --- a/media/filters/pipeline_integration_test_base.cc
|
| +++ b/media/filters/pipeline_integration_test_base.cc
|
| @@ -15,6 +15,7 @@
|
| #include "media/filters/ffmpeg_video_decoder.h"
|
| #include "media/filters/file_data_source.h"
|
| #include "media/filters/opus_audio_decoder.h"
|
| +#include "media/filters/renderer_impl.h"
|
| #include "media/filters/vpx_video_decoder.h"
|
|
|
| using ::testing::_;
|
| @@ -40,7 +41,7 @@ PipelineIntegrationTestBase::PipelineIntegrationTestBase()
|
|
|
| // Prevent non-deterministic buffering state callbacks from firing (e.g., slow
|
| // machine, valgrind).
|
| - pipeline_->set_underflow_disabled_for_testing(true);
|
| + pipeline_->DisableUnderflowForTesting();
|
| }
|
|
|
| PipelineIntegrationTestBase::~PipelineIntegrationTestBase() {
|
| @@ -256,7 +257,7 @@ PipelineIntegrationTestBase::CreateFilterCollection(
|
| new FFmpegVideoDecoder(message_loop_.message_loop_proxy()));
|
|
|
| // Disable frame dropping if hashing is enabled.
|
| - scoped_ptr<VideoRenderer> renderer(new VideoRendererImpl(
|
| + scoped_ptr<VideoRenderer> video_renderer(new VideoRendererImpl(
|
| message_loop_.message_loop_proxy(),
|
| video_decoders.Pass(),
|
| base::Bind(&PipelineIntegrationTestBase::SetDecryptor,
|
| @@ -265,7 +266,6 @@ PipelineIntegrationTestBase::CreateFilterCollection(
|
| base::Bind(&PipelineIntegrationTestBase::OnVideoRendererPaint,
|
| base::Unretained(this)),
|
| false));
|
| - collection->SetVideoRenderer(renderer.Pass());
|
|
|
| if (!clockless_playback_) {
|
| audio_sink_ = new NullAudioSink(message_loop_.message_loop_proxy());
|
| @@ -286,7 +286,7 @@ PipelineIntegrationTestBase::CreateFilterCollection(
|
| 512);
|
| hardware_config_.UpdateOutputConfig(out_params);
|
|
|
| - AudioRendererImpl* audio_renderer_impl = new AudioRendererImpl(
|
| + scoped_ptr<AudioRenderer> audio_renderer(new AudioRendererImpl(
|
| message_loop_.message_loop_proxy(),
|
| (clockless_playback_)
|
| ? static_cast<AudioRendererSink*>(clockless_audio_sink_.get())
|
| @@ -295,11 +295,16 @@ PipelineIntegrationTestBase::CreateFilterCollection(
|
| base::Bind(&PipelineIntegrationTestBase::SetDecryptor,
|
| base::Unretained(this),
|
| decryptor),
|
| - &hardware_config_);
|
| + &hardware_config_));
|
| if (hashing_enabled_)
|
| audio_sink_->StartAudioHashForTesting();
|
| - scoped_ptr<AudioRenderer> audio_renderer(audio_renderer_impl);
|
| - collection->SetAudioRenderer(audio_renderer.Pass());
|
| +
|
| + scoped_ptr<Renderer> renderer(
|
| + new RendererImpl(message_loop_.message_loop_proxy(),
|
| + demuxer_.get(),
|
| + audio_renderer.Pass(),
|
| + video_renderer.Pass()));
|
| + collection->SetRenderer(renderer.Pass());
|
|
|
| return collection.Pass();
|
| }
|
|
|