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

Unified Diff: media/tools/player_wtl/movie.cc

Issue 4653005: Move FilterType into MediaFilterCollection (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed windows build buster & presubmit check failure Created 10 years, 1 month 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
« no previous file with comments | « media/filters/decoder_base_unittest.cc ('k') | media/tools/player_x11/player_x11.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/tools/player_wtl/movie.cc
diff --git a/media/tools/player_wtl/movie.cc b/media/tools/player_wtl/movie.cc
index c12d724ce3dd2cf0d480490278fcff880b1e60f9..81ca6fe870ef4b25635f8ea44727e12912f911b7 100644
--- a/media/tools/player_wtl/movie.cc
+++ b/media/tools/player_wtl/movie.cc
@@ -1,6 +1,6 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved. Use of this
-// source code is governed by a BSD-style license that can be found in the
-// LICENSE file.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
#include "media/tools/player_wtl/movie.h"
@@ -55,17 +55,17 @@ bool Movie::Open(const wchar_t* url, WtlVideoRenderer* video_renderer) {
// Create filter collection.
scoped_ptr<MediaFilterCollection> collection(new MediaFilterCollection());
- collection->AddFilter(new FileDataSource());
- collection->AddFilter(new FFmpegAudioDecoder());
- collection->AddFilter(new FFmpegDemuxer());
- collection->AddFilter(new FFmpegVideoDecoder(NULL));
+ collection->AddDataSource(new FileDataSource());
+ collection->AddAudioDecoder(new FFmpegAudioDecoder());
+ collection->AddDemuxer(new FFmpegDemuxer());
+ collection->AddVideoDecoder(new FFmpegVideoDecoder(NULL));
if (enable_audio_) {
- collection->AddFilter(new AudioRendererImpl());
+ collection->AddAudioRenderer(new AudioRendererImpl());
} else {
- collection->AddFilter(new media::NullAudioRenderer());
+ collection->AddAudioRenderer(new media::NullAudioRenderer());
}
- collection->AddFilter(video_renderer);
+ collection->AddVideoRenderer(video_renderer);
thread_.reset(new base::Thread("PipelineThread"));
thread_->Start();
« no previous file with comments | « media/filters/decoder_base_unittest.cc ('k') | media/tools/player_x11/player_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698