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

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

Issue 276573002: Add gapless playback support for AAC playback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix msvc error. Created 6 years, 6 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/decoder_buffer.h ('k') | media/base/stream_parser_buffer.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/decoder_buffer.h" 5 #include "media/base/decoder_buffer.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "media/base/buffers.h" 8 #include "media/base/buffers.h"
9 #include "media/base/decrypt_config.h" 9 #include "media/base/decrypt_config.h"
10 10
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 s << "timestamp: " << timestamp_.InMicroseconds() 81 s << "timestamp: " << timestamp_.InMicroseconds()
82 << " duration: " << duration_.InMicroseconds() 82 << " duration: " << duration_.InMicroseconds()
83 << " size: " << size_ 83 << " size: " << size_
84 << " side_data_size: " << side_data_size_ 84 << " side_data_size: " << side_data_size_
85 << " encrypted: " << (decrypt_config_ != NULL) 85 << " encrypted: " << (decrypt_config_ != NULL)
86 << " discard_padding (ms): (" << discard_padding_.first.InMilliseconds() 86 << " discard_padding (ms): (" << discard_padding_.first.InMilliseconds()
87 << ", " << discard_padding_.second.InMilliseconds() << ")"; 87 << ", " << discard_padding_.second.InMilliseconds() << ")";
88 return s.str(); 88 return s.str();
89 } 89 }
90 90
91 void DecoderBuffer::set_timestamp(base::TimeDelta timestamp) {
92 DCHECK(!end_of_stream());
93 timestamp_ = timestamp;
94 }
95
91 } // namespace media 96 } // namespace media
OLDNEW
« no previous file with comments | « media/base/decoder_buffer.h ('k') | media/base/stream_parser_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698