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

Unified Diff: media/base/clock.cc

Issue 10800041: Update media duration if data is appended after the previous duration (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 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
« no previous file with comments | « no previous file | media/base/data_source.h » ('j') | media/base/demuxer.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/clock.cc
diff --git a/media/base/clock.cc b/media/base/clock.cc
index 06f1b5686ccea50fb2de7e1b98849d636b520ba8..c922f31410e7793d29ed6f7296003ace97433946 100644
--- a/media/base/clock.cc
+++ b/media/base/clock.cc
@@ -80,7 +80,6 @@ void Clock::SetMaxTime(base::TimeDelta max_time) {
}
void Clock::SetDuration(base::TimeDelta duration) {
- DCHECK(duration_ == kNoTimestamp() || duration_ == kInfiniteDuration());
DCHECK(duration > base::TimeDelta());
duration_ = duration;
acolwell GONE FROM CHROMIUM 2012/07/27 00:03:22 I think you need the following media_time_ = Clamp
vrk (LEFT CHROMIUM) 2012/07/28 01:42:05 Good point! Done.
}
« no previous file with comments | « no previous file | media/base/data_source.h » ('j') | media/base/demuxer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698