Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1028)

Unified Diff: media/filters/chunk_demuxer.cc

Issue 8936014: Removing DataSource from Filter hierarchy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix build busters Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/filters/chunk_demuxer.cc
diff --git a/media/filters/chunk_demuxer.cc b/media/filters/chunk_demuxer.cc
index f81b80f673acb522a5a2a05d7bd64a22fb58edcc..cda484b1eba19b07ee93fbad192f59d3378f9f8a 100644
--- a/media/filters/chunk_demuxer.cc
+++ b/media/filters/chunk_demuxer.cc
@@ -12,7 +12,6 @@
#include "base/logging.h"
#include "base/message_loop.h"
#include "media/base/audio_decoder_config.h"
-#include "media/base/filter_host.h"
#include "media/base/data_buffer.h"
#include "media/base/video_decoder_config.h"
#include "media/ffmpeg/ffmpeg_common.h"
@@ -323,11 +322,11 @@ void ChunkDemuxer::Init(const PipelineStatusCB& cb) {
client_->DemuxerOpened(this);
}
-void ChunkDemuxer::set_host(FilterHost* filter_host) {
+void ChunkDemuxer::set_host(DemuxerHost* host) {
DCHECK_EQ(state_, INITIALIZED);
- Demuxer::set_host(filter_host);
- filter_host->SetDuration(duration_);
- filter_host->SetCurrentReadPosition(0);
+ Demuxer::set_host(host);
+ host->SetDuration(duration_);
+ host->SetCurrentReadPosition(0);
}
void ChunkDemuxer::Stop(const base::Closure& callback) {
@@ -811,7 +810,7 @@ void ChunkDemuxer::ReportError_Locked(PipelineStatus error) {
{
base::AutoUnlock auto_unlock(lock_);
if (cb.is_null()) {
- host()->SetError(error);
+ host()->OnDemuxerError(error);
return;
}
cb.Run(error);

Powered by Google App Engine
This is Rietveld 408576698