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

Unified Diff: media/filters/chunk_demuxer.cc

Issue 10451049: Track buffered byte ranges correctly in media::Pipeline. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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/filters/chunk_demuxer.cc
diff --git a/media/filters/chunk_demuxer.cc b/media/filters/chunk_demuxer.cc
index 6af153a5e025a070fe61ace1edf875f2ecf84e3e..12ac745e9dce4bb125372c74dd4a8131be4c5e8b 100644
--- a/media/filters/chunk_demuxer.cc
+++ b/media/filters/chunk_demuxer.cc
@@ -699,8 +699,9 @@ bool ChunkDemuxer::AppendData(const std::string& id,
buffered_bytes = buffered_bytes_;
}
- // Notify the host of 'network activity' because we got data.
- host_->SetBufferedBytes(buffered_bytes);
+ // Notify the host of 'network activity' because we got data, using a bogus
+ // range.
+ host_->AddBufferedByteRange(0, buffered_bytes);
host_->SetNetworkActivity(true);
@@ -833,7 +834,6 @@ void ChunkDemuxer::OnSourceBufferInitDone(bool success,
duration_ = duration;
host_->SetDuration(duration_);
- host_->SetCurrentReadPosition(0);
ChangeState_Locked(INITIALIZED);
PipelineStatusCB cb;

Powered by Google App Engine
This is Rietveld 408576698