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/stream_parser_buffer.h" | 5 #include "media/base/stream_parser_buffer.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 | 8 |
9 namespace media { | 9 namespace media { |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 } | 25 } |
26 | 26 |
27 void StreamParserBuffer::SetDecodeTimestamp(const base::TimeDelta& timestamp) { | 27 void StreamParserBuffer::SetDecodeTimestamp(const base::TimeDelta& timestamp) { |
28 decode_timestamp_ = timestamp; | 28 decode_timestamp_ = timestamp; |
29 } | 29 } |
30 | 30 |
31 StreamParserBuffer::StreamParserBuffer(const uint8* data, int data_size, | 31 StreamParserBuffer::StreamParserBuffer(const uint8* data, int data_size, |
32 bool is_keyframe) | 32 bool is_keyframe) |
33 : DecoderBuffer(data, data_size), | 33 : DecoderBuffer(data, data_size), |
34 is_keyframe_(is_keyframe), | 34 is_keyframe_(is_keyframe), |
35 decode_timestamp_(kNoTimestamp()) { | 35 decode_timestamp_(kNoTimestamp()), |
| 36 config_id_(kInvalidConfigId) { |
36 SetDuration(kNoTimestamp()); | 37 SetDuration(kNoTimestamp()); |
37 } | 38 } |
38 | 39 |
39 StreamParserBuffer::~StreamParserBuffer() { | 40 StreamParserBuffer::~StreamParserBuffer() { |
40 } | 41 } |
41 | 42 |
| 43 int StreamParserBuffer::GetConfigId() const { |
| 44 return config_id_; |
| 45 } |
| 46 |
| 47 void StreamParserBuffer::SetConfigId(int config_id) { |
| 48 config_id_ = config_id; |
| 49 } |
| 50 |
42 } // namespace media | 51 } // namespace media |
OLD | NEW |