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

Unified Diff: media/base/seekable_buffer.cc

Issue 2140001: Removed PushSource::Packet. SeekableBuffer.current_time() fixed to return (Closed)
Patch Set: - Created 10 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: media/base/seekable_buffer.cc
diff --git a/media/base/seekable_buffer.cc b/media/base/seekable_buffer.cc
index 15819c13c09f6b0623d3abe6ed2d2abe4bd626e6..f076ee80ab9c375da98dfb241e6017be14df73a5 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;
}

Powered by Google App Engine
This is Rietveld 408576698