From 5e0d4de52fcf0ddbcd94a56e6890af4aabf6f705 Mon Sep 17 00:00:00 2001 From: "sergeyu@chromium.org" Date: Wed, 26 May 2010 21:39:32 +0000 Subject: 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 --- media/base/seekable_buffer.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'media/base/seekable_buffer.cc') 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; } -- cgit v1.1