summaryrefslogtreecommitdiffstats
path: root/media/base/pts_stream.cc
diff options
context:
space:
mode:
Diffstat (limited to 'media/base/pts_stream.cc')
-rw-r--r--media/base/pts_stream.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/media/base/pts_stream.cc b/media/base/pts_stream.cc
index 0223cdb..48cec61 100644
--- a/media/base/pts_stream.cc
+++ b/media/base/pts_stream.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -31,7 +31,7 @@ void PtsStream::Flush() {
void PtsStream::EnqueuePts(StreamSample* sample) {
DCHECK(sample);
- if (!sample->IsEndOfStream() && sample->GetTimestamp() != kNoTimestamp) {
+ if (!sample->IsEndOfStream() && sample->GetTimestamp() != kNoTimestamp()) {
pts_heap_.Push(sample->GetTimestamp());
}
}
@@ -46,7 +46,7 @@ void PtsStream::UpdatePtsAndDuration(StreamSample* sample) {
// situation and set the timestamp to kInvalidTimestamp.
DCHECK(sample);
base::TimeDelta timestamp = sample->GetTimestamp();
- if (timestamp != kNoTimestamp &&
+ if (timestamp != kNoTimestamp() &&
timestamp.ToInternalValue() != 0) {
current_pts_ = timestamp;
// We need to clean up the timestamp we pushed onto the |pts_heap_|.
@@ -56,18 +56,18 @@ void PtsStream::UpdatePtsAndDuration(StreamSample* sample) {
// If the frame did not have pts, try to get the pts from the |pts_heap|.
current_pts_ = pts_heap_.Top();
pts_heap_.Pop();
- } else if (current_pts_ != kNoTimestamp) {
+ } else if (current_pts_ != kNoTimestamp()) {
// Guess assuming this frame was the same as the last frame.
current_pts_ = current_pts_ + current_duration_;
} else {
// Now we really have no clue!!! Mark an invalid timestamp and let the
// video renderer handle it (i.e., drop frame).
- current_pts_ = kNoTimestamp;
+ current_pts_ = kNoTimestamp();
}
// Fill in the duration, using the frame itself as the authoratative source.
base::TimeDelta duration = sample->GetDuration();
- if (duration != kNoTimestamp &&
+ if (duration != kNoTimestamp() &&
duration.ToInternalValue() != 0) {
current_duration_ = duration;
} else {