summaryrefslogtreecommitdiffstats
path: root/media/base/pipeline_impl.cc
diff options
context:
space:
mode:
authoracolwell@chromium.org <acolwell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-15 22:04:49 +0000
committeracolwell@chromium.org <acolwell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-15 22:04:49 +0000
commitb7ba5b5e11aaa87de7601daf1ab5443fe41a6f3c (patch)
treecfe597f6707c7edd075944c97da2849194daa937 /media/base/pipeline_impl.cc
parentb87c4a775b5b625dc2034b70e1232862d5d7faac (diff)
downloadchromium_src-b7ba5b5e11aaa87de7601daf1ab5443fe41a6f3c.zip
chromium_src-b7ba5b5e11aaa87de7601daf1ab5443fe41a6f3c.tar.gz
chromium_src-b7ba5b5e11aaa87de7601daf1ab5443fe41a6f3c.tar.bz2
Move FilterType into MediaFilterCollection
MediaFilterCollection is the only code that uses FilterType now so I'm moving the enum into that class and removing all references from the MediaFilter & derived classes. BUG=61823 TEST=No new functionality. Existing tests pass. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66125 Review URL: http://codereview.chromium.org/4653005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66182 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/pipeline_impl.cc')
-rw-r--r--media/base/pipeline_impl.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/media/base/pipeline_impl.cc b/media/base/pipeline_impl.cc
index 7f17ff8..7765cd0 100644
--- a/media/base/pipeline_impl.cc
+++ b/media/base/pipeline_impl.cc
@@ -954,7 +954,7 @@ void PipelineImpl::InitializeDataSource() {
scoped_refptr<DataSource> data_source;
while (true) {
- filter_collection_->SelectFilter(&data_source);
+ filter_collection_->SelectDataSource(&data_source);
if (!data_source || data_source->IsUrlSupported(url_))
break;
}
@@ -979,7 +979,7 @@ void PipelineImpl::InitializeDemuxer(
CHECK(data_source);
- filter_collection_->SelectFilter(&demuxer);
+ filter_collection_->SelectDemuxer(&demuxer);
if (!demuxer) {
SetError(PIPELINE_ERROR_REQUIRED_FILTER_MISSING);
return;
@@ -1001,7 +1001,7 @@ bool PipelineImpl::InitializeAudioDecoder(
if (stream) {
scoped_refptr<AudioDecoder> audio_decoder;
- filter_collection_->SelectFilter(&audio_decoder);
+ filter_collection_->SelectAudioDecoder(&audio_decoder);
if (audio_decoder) {
PrepareFilter(audio_decoder);
@@ -1028,7 +1028,7 @@ bool PipelineImpl::InitializeVideoDecoder(
if (stream) {
scoped_refptr<VideoDecoder> video_decoder;
- filter_collection_->SelectFilter(&video_decoder);
+ filter_collection_->SelectVideoDecoder(&video_decoder);
if (video_decoder) {
PrepareFilter(video_decoder);
@@ -1050,7 +1050,7 @@ bool PipelineImpl::InitializeAudioRenderer(
DCHECK(IsPipelineOk());
if (decoder) {
- filter_collection_->SelectFilter(&audio_renderer_);
+ filter_collection_->SelectAudioRenderer(&audio_renderer_);
if (audio_renderer_) {
PrepareFilter(audio_renderer_);
@@ -1070,7 +1070,7 @@ bool PipelineImpl::InitializeVideoRenderer(
DCHECK(IsPipelineOk());
if (decoder) {
- filter_collection_->SelectFilter(&video_renderer_);
+ filter_collection_->SelectVideoRenderer(&video_renderer_);
if (video_renderer_) {
PrepareFilter(video_renderer_);