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/filters/chunk_demuxer.h" | 5 #include "media/filters/chunk_demuxer.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 #include <list> | 9 #include <list> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/callback_helpers.h" | 12 #include "base/callback_helpers.h" |
13 #include "base/location.h" | 13 #include "base/location.h" |
| 14 #include "base/macros.h" |
14 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
15 #include "media/base/audio_decoder_config.h" | 16 #include "media/base/audio_decoder_config.h" |
16 #include "media/base/bind_to_current_loop.h" | 17 #include "media/base/bind_to_current_loop.h" |
17 #include "media/base/stream_parser_buffer.h" | 18 #include "media/base/stream_parser_buffer.h" |
18 #include "media/base/timestamp_constants.h" | 19 #include "media/base/timestamp_constants.h" |
19 #include "media/base/video_decoder_config.h" | 20 #include "media/base/video_decoder_config.h" |
20 #include "media/filters/frame_processor.h" | 21 #include "media/filters/frame_processor.h" |
21 #include "media/filters/stream_parser_factory.h" | 22 #include "media/filters/stream_parser_factory.h" |
22 | 23 |
23 using base::TimeDelta; | 24 using base::TimeDelta; |
(...skipping 1941 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1965 } | 1966 } |
1966 | 1967 |
1967 void ChunkDemuxer::ShutdownAllStreams() { | 1968 void ChunkDemuxer::ShutdownAllStreams() { |
1968 for (SourceStateMap::iterator itr = source_state_map_.begin(); | 1969 for (SourceStateMap::iterator itr = source_state_map_.begin(); |
1969 itr != source_state_map_.end(); ++itr) { | 1970 itr != source_state_map_.end(); ++itr) { |
1970 itr->second->Shutdown(); | 1971 itr->second->Shutdown(); |
1971 } | 1972 } |
1972 } | 1973 } |
1973 | 1974 |
1974 } // namespace media | 1975 } // namespace media |
OLD | NEW |