| Index: media/filters/ffmpeg_demuxer.cc
|
| diff --git a/media/filters/ffmpeg_demuxer.cc b/media/filters/ffmpeg_demuxer.cc
|
| index c1a056cdbb8f2dc4cc86b43b183725e6ee859547..90b4ac359554bdab779aea832534cf7ae7aabae4 100644
|
| --- a/media/filters/ffmpeg_demuxer.cc
|
| +++ b/media/filters/ffmpeg_demuxer.cc
|
| @@ -11,7 +11,6 @@
|
| #include "base/string_util.h"
|
| #include "base/time.h"
|
| #include "media/base/data_buffer.h"
|
| -#include "media/base/filter_host.h"
|
| #include "media/base/limits.h"
|
| #include "media/base/media_switches.h"
|
| #include "media/ffmpeg/ffmpeg_common.h"
|
| @@ -339,16 +338,16 @@ void FFmpegDemuxer::OnAudioRendererDisabled() {
|
| &FFmpegDemuxer::DisableAudioStreamTask, this));
|
| }
|
|
|
| -void FFmpegDemuxer::set_host(FilterHost* filter_host) {
|
| - Demuxer::set_host(filter_host);
|
| +void FFmpegDemuxer::set_host(DemuxerHost* demuxer_host) {
|
| + Demuxer::set_host(demuxer_host);
|
| if (data_source_)
|
| - data_source_->set_host(filter_host);
|
| + data_source_->set_host(demuxer_host);
|
| if (max_duration_.InMicroseconds() >= 0)
|
| host()->SetDuration(max_duration_);
|
| if (read_position_ > 0)
|
| host()->SetCurrentReadPosition(read_position_);
|
| if (deferred_status_ != PIPELINE_OK)
|
| - host()->SetError(deferred_status_);
|
| + host()->OnDemuxerError(deferred_status_);
|
| }
|
|
|
| void FFmpegDemuxer::Initialize(DataSource* data_source,
|
| @@ -395,7 +394,7 @@ size_t FFmpegDemuxer::Read(size_t size, uint8* data) {
|
| size_t last_read_bytes = WaitForRead();
|
| if (last_read_bytes == DataSource::kReadError) {
|
| if (host())
|
| - host()->SetError(PIPELINE_ERROR_READ);
|
| + host()->OnDemuxerError(PIPELINE_ERROR_READ);
|
| else
|
| deferred_status_ = PIPELINE_ERROR_READ;
|
|
|
|
|