| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "media/base/filter_collection.h" | 5 #include "media/base/filter_collection.h" |
| 6 | 6 |
| 7 namespace media { | 7 namespace media { |
| 8 | 8 |
| 9 FilterCollection::FilterCollection() { | 9 FilterCollection::FilterCollection() {} |
| 10 } | 10 |
| 11 FilterCollection::~FilterCollection() {} |
| 11 | 12 |
| 12 void FilterCollection::AddDataSource(DataSource* filter) { | 13 void FilterCollection::AddDataSource(DataSource* filter) { |
| 13 AddFilter(DATA_SOURCE, filter); | 14 AddFilter(DATA_SOURCE, filter); |
| 14 } | 15 } |
| 15 | 16 |
| 16 void FilterCollection::AddDemuxer(Demuxer* filter) { | 17 void FilterCollection::AddDemuxer(Demuxer* filter) { |
| 17 AddFilter(DEMUXER, filter); | 18 AddFilter(DEMUXER, filter); |
| 18 } | 19 } |
| 19 | 20 |
| 20 void FilterCollection::AddVideoDecoder(VideoDecoder* filter) { | 21 void FilterCollection::AddVideoDecoder(VideoDecoder* filter) { |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 ++it; | 94 ++it; |
| 94 } | 95 } |
| 95 | 96 |
| 96 if (it != filters_.end()) { | 97 if (it != filters_.end()) { |
| 97 *filter_out = it->second.get(); | 98 *filter_out = it->second.get(); |
| 98 filters_.erase(it); | 99 filters_.erase(it); |
| 99 } | 100 } |
| 100 } | 101 } |
| 101 | 102 |
| 102 } // namespace media | 103 } // namespace media |
| OLD | NEW |