| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/decoder_stream_traits.h" | 5 #include "media/filters/decoder_stream_traits.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "media/base/audio_buffer.h" | 8 #include "media/base/audio_buffer.h" |
| 9 #include "media/base/audio_decoder.h" | 9 #include "media/base/audio_decoder.h" |
| 10 #include "media/base/audio_decoder_config.h" | 10 #include "media/base/audio_decoder_config.h" |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 void DecoderStreamTraits<DemuxerStream::AUDIO>::OnDecode( | 96 void DecoderStreamTraits<DemuxerStream::AUDIO>::OnDecode( |
| 97 const scoped_refptr<DecoderBuffer>& buffer) { | 97 const scoped_refptr<DecoderBuffer>& buffer) { |
| 98 audio_ts_validator_->CheckForTimestampGap(buffer); | 98 audio_ts_validator_->CheckForTimestampGap(buffer); |
| 99 } | 99 } |
| 100 | 100 |
| 101 void DecoderStreamTraits<DemuxerStream::AUDIO>::OnDecodeDone( | 101 void DecoderStreamTraits<DemuxerStream::AUDIO>::OnDecodeDone( |
| 102 const scoped_refptr<OutputType>& buffer) { | 102 const scoped_refptr<OutputType>& buffer) { |
| 103 audio_ts_validator_->RecordOutputDuration(buffer); | 103 audio_ts_validator_->RecordOutputDuration(buffer); |
| 104 } | 104 } |
| 105 | 105 |
| 106 template class DecoderStreamTraits<DemuxerStream::VIDEO>; | |
| 107 template class DecoderStreamTraits<DemuxerStream::AUDIO>; | |
| 108 | |
| 109 } // namespace media | 106 } // namespace media |
| OLD | NEW |