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; |