| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "media/base/audio_decoder.h" | 8 #include "media/base/audio_decoder.h" |
| 9 #include "media/base/audio_renderer.h" | 9 #include "media/base/audio_renderer.h" |
| 10 #include "media/base/demuxer.h" | 10 #include "media/base/demuxer.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 64 |
| 65 void FilterCollection::SelectVideoRenderer(scoped_refptr<VideoRenderer>* out) { | 65 void FilterCollection::SelectVideoRenderer(scoped_refptr<VideoRenderer>* out) { |
| 66 if (video_renderers_.empty()) { | 66 if (video_renderers_.empty()) { |
| 67 *out = NULL; | 67 *out = NULL; |
| 68 return; | 68 return; |
| 69 } | 69 } |
| 70 *out = video_renderers_.front(); | 70 *out = video_renderers_.front(); |
| 71 video_renderers_.pop_front(); | 71 video_renderers_.pop_front(); |
| 72 } | 72 } |
| 73 | 73 |
| 74 FilterCollection::VideoDecoderList* | 74 FilterCollection::VideoDecoderList* FilterCollection::GetVideoDecoders() { |
| 75 FilterCollection::GetVideoDecoders() { | |
| 76 return &video_decoders_; | 75 return &video_decoders_; |
| 77 } | 76 } |
| 78 | 77 |
| 79 } // namespace media | 78 } // namespace media |
| OLD | NEW |