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/ffmpeg_demuxer.h" | 5 #include "media/filters/ffmpeg_demuxer.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/base64.h" | 10 #include "base/base64.h" |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/callback_helpers.h" | 13 #include "base/callback_helpers.h" |
14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/message_loop.h" | 16 #include "base/message_loop.h" |
17 #include "base/metrics/sparse_histogram.h" | 17 #include "base/metrics/sparse_histogram.h" |
18 #include "base/stl_util.h" | 18 #include "base/stl_util.h" |
19 #include "base/string_util.h" | 19 #include "base/strings/string_util.h" |
20 #include "base/task_runner_util.h" | 20 #include "base/task_runner_util.h" |
21 #include "base/time.h" | 21 #include "base/time.h" |
22 #include "media/base/audio_decoder_config.h" | 22 #include "media/base/audio_decoder_config.h" |
23 #include "media/base/bind_to_loop.h" | 23 #include "media/base/bind_to_loop.h" |
24 #include "media/base/decoder_buffer.h" | 24 #include "media/base/decoder_buffer.h" |
25 #include "media/base/decrypt_config.h" | 25 #include "media/base/decrypt_config.h" |
26 #include "media/base/limits.h" | 26 #include "media/base/limits.h" |
27 #include "media/base/media_switches.h" | 27 #include "media/base/media_switches.h" |
28 #include "media/base/video_decoder_config.h" | 28 #include "media/base/video_decoder_config.h" |
29 #include "media/ffmpeg/ffmpeg_common.h" | 29 #include "media/ffmpeg/ffmpeg_common.h" |
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
766 } | 766 } |
767 for (size_t i = 0; i < buffered.size(); ++i) | 767 for (size_t i = 0; i < buffered.size(); ++i) |
768 host_->AddBufferedTimeRange(buffered.start(i), buffered.end(i)); | 768 host_->AddBufferedTimeRange(buffered.start(i), buffered.end(i)); |
769 } | 769 } |
770 | 770 |
771 void FFmpegDemuxer::OnDataSourceError() { | 771 void FFmpegDemuxer::OnDataSourceError() { |
772 host_->OnDemuxerError(PIPELINE_ERROR_READ); | 772 host_->OnDemuxerError(PIPELINE_ERROR_READ); |
773 } | 773 } |
774 | 774 |
775 } // namespace media | 775 } // namespace media |
OLD | NEW |