1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "media/base/filter_collection.h"
7 #include "media/base/audio_renderer.h"
8 #include "media/base/demuxer.h"
9 #include "media/base/video_renderer.h"
13 FilterCollection::FilterCollection() : demuxer_(NULL
) {}
15 FilterCollection::~FilterCollection() {}
17 void FilterCollection::SetDemuxer(Demuxer
* demuxer
) {
21 Demuxer
* FilterCollection::GetDemuxer() {
25 void FilterCollection::SetAudioRenderer(
26 scoped_ptr
<AudioRenderer
> audio_renderer
) {
27 audio_renderer_
= audio_renderer
.Pass();
30 scoped_ptr
<AudioRenderer
> FilterCollection::GetAudioRenderer() {
31 return audio_renderer_
.Pass();
34 void FilterCollection::SetVideoRenderer(
35 scoped_ptr
<VideoRenderer
> video_renderer
) {
36 video_renderer_
= video_renderer
.Pass();
39 scoped_ptr
<VideoRenderer
> FilterCollection::GetVideoRenderer() {
40 return video_renderer_
.Pass();