Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(316)

Side by Side Diff: media/base/stream_parser_buffer.cc

Issue 10696182: Add config change handling to SourceBufferStream & ChunkDemuxer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added copyright headers to manifest files Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/base/stream_parser_buffer.h ('k') | media/base/video_decoder_config.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « media/base/stream_parser_buffer.h ('k') | media/base/video_decoder_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698