diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-26 21:39:32 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-26 21:39:32 +0000 |
commit | 5e0d4de52fcf0ddbcd94a56e6890af4aabf6f705 (patch) | |
tree | e485677b0f64cb5268eef6a6a0f5618bcc03b6cc /media/base/seekable_buffer.cc | |
parent | 5c84b7e13f3525b84f7928e946727b5b8b77899b (diff) | |
download | chromium_src-5e0d4de52fcf0ddbcd94a56e6890af4aabf6f705.zip chromium_src-5e0d4de52fcf0ddbcd94a56e6890af4aabf6f705.tar.gz chromium_src-5e0d4de52fcf0ddbcd94a56e6890af4aabf6f705.tar.bz2 |
Removed PushSource::Packet. SeekableBuffer.current_time() fixed to return
kInvalidTimestamp when the time is unknown.
TEST=media_unittests
BUG=28654
Review URL: http://codereview.chromium.org/2140001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48329 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/seekable_buffer.cc')
-rw-r--r-- | media/base/seekable_buffer.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/media/base/seekable_buffer.cc b/media/base/seekable_buffer.cc index 15819c1..f076ee8 100644 --- a/media/base/seekable_buffer.cc +++ b/media/base/seekable_buffer.cc @@ -17,7 +17,8 @@ SeekableBuffer::SeekableBuffer(size_t backward_capacity, backward_capacity_(backward_capacity), backward_bytes_(0), forward_capacity_(forward_capacity), - forward_bytes_(0) { + forward_bytes_(0), + current_time_(StreamSample::kInvalidTimestamp) { current_buffer_ = buffers_.begin(); } @@ -30,7 +31,7 @@ void SeekableBuffer::Clear() { current_buffer_offset_ = 0; backward_bytes_ = 0; forward_bytes_ = 0; - current_time_ = base::TimeDelta(); + current_time_ = StreamSample::kInvalidTimestamp; } |