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

Unified Diff: content/renderer/media/buffered_data_source_host_impl.cc

Issue 435303004: Fix buffered ranges when duration is infinite. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Derp. Created 6 years, 4 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 | content/renderer/media/webmediaplayer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/buffered_data_source_host_impl.cc
diff --git a/content/renderer/media/buffered_data_source_host_impl.cc b/content/renderer/media/buffered_data_source_host_impl.cc
index 45c97e63587c8023b24d52ccf56116a42c9e287b..3ffee07481a2fce055ff7c41cbcdc79954315750 100644
--- a/content/renderer/media/buffered_data_source_host_impl.cc
+++ b/content/renderer/media/buffered_data_source_host_impl.cc
@@ -36,6 +36,8 @@ static base::TimeDelta TimeForByteOffset(
void BufferedDataSourceHostImpl::AddBufferedTimeRanges(
media::Ranges<base::TimeDelta>* buffered_time_ranges,
base::TimeDelta media_duration) const {
+ DCHECK(media_duration != media::kNoTimestamp());
+ DCHECK(media_duration != media::kInfiniteDuration());
if (total_bytes_ && buffered_byte_ranges_.size()) {
for (size_t i = 0; i < buffered_byte_ranges_.size(); ++i) {
int64 start = buffered_byte_ranges_.start(i);
« no previous file with comments | « no previous file | content/renderer/media/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698