|
Track buffered byte ranges correctly in media::Pipeline.
Previously, the interaction was:
BufferedDataSource: hey Pipeline, I just read byte X
Pipeline: cool story bro! I'll just pretend you've read every single byte from 0 to X.
Now the interaction is:
BufferedDataSource: hey Pipeline, I just read bytes X-Y
Pipeline: neato! I'll just add that range to my list of buffered ranges.
The most noticeable outcome of this change is that seeking in a media format that requires reading a seek index from the end of the file (e.g. WebM w/ CUES at the end) no longer results in an almost-instant claim of having buffered the entire video just because a seek was completed (esp. dramatic when viewing a very large file, such as a multi-hour video).
BUG= 103513, 127355
TEST=besides unittests, this allows a cleaned-up version of http/tests/media/video-buffered.html to be un-SKIPped!
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=139452
Total comments: 9
Total comments: 5
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+91 lines, -138 lines) |
Patch |
|
M |
media/base/data_source.h
|
View
|
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
media/base/demuxer.h
|
View
|
1
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
media/base/mock_data_source_host.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
media/base/mock_demuxer_host.h
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
media/base/pipeline.h
|
View
|
1
|
5 chunks |
+8 lines, -13 lines |
0 comments
|
Download
|
|
M |
media/base/pipeline.cc
|
View
|
1
2
|
13 chunks |
+48 lines, -58 lines |
0 comments
|
Download
|
|
M |
media/base/pipeline_unittest.cc
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
media/filters/chunk_demuxer.cc
|
View
|
1
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
media/filters/chunk_demuxer_unittest.cc
|
View
|
1
|
2 chunks |
+3 lines, -6 lines |
0 comments
|
Download
|
|
M |
media/filters/ffmpeg_demuxer.cc
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
media/filters/ffmpeg_demuxer_unittest.cc
|
View
|
1
|
7 chunks |
+1 line, -13 lines |
0 comments
|
Download
|
|
M |
media/filters/file_data_source.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
media/filters/file_data_source_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
media/tools/seek_tester/seek_tester.cc
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
webkit/media/buffered_data_source.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
webkit/media/buffered_data_source.cc
|
View
|
|
10 chunks |
+14 lines, -14 lines |
0 comments
|
Download
|
|
M |
webkit/media/buffered_data_source_unittest.cc
|
View
|
|
9 chunks |
+2 lines, -14 lines |
0 comments
|
Download
|
Total messages: 9 (0 generated)
|