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

Issue 1526303004: Fix buffered range updates in media::Pipeline (Closed)

Created:
5 years ago by servolk
Modified:
4 years, 11 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix buffered range updates in media::Pipeline Currently the buffered ranges reported by media::Pipeline::GetBufferedTimeRanges may be out of sync with the actually buffered ranges in the demuxer, since there's no way for a demuxer to indicate that some time range got evicted (e.g. in MSE case). This CL replaces media::Pipeline::AddBufferedTimeRange with OnBufferedTimeRangesChanged method that allows demuxer to report arbitrary changes in buffered ranges. BUG=570514 Committed: https://crrev.com/21e682ef9c2d34528aa24bf33f2e4b2734ac573b Cr-Commit-Position: refs/heads/master@{#369585}

Patch Set 1 #

Patch Set 2 : Buildfixes for Android/Chromecast #

Patch Set 3 : Added unit test #

Total comments: 14

Patch Set 4 : Update buffered ranges on MSE SB.remove + unit test for that #

Patch Set 5 : rebase #

Patch Set 6 : Rebase + updated comment #

Patch Set 7 : Fixed TimeDelta nit #

Patch Set 8 : Android buildfix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -26 lines) Patch
M chromecast/media/cma/test/frame_segmenter_for_test.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/media/android/media_source_delegate.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/media/android/media_source_delegate.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M media/base/demuxer.h View 1 2 3 4 5 2 chunks +8 lines, -3 lines 0 comments Download
M media/base/demuxer_perftest.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M media/base/mock_demuxer_host.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M media/base/pipeline.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M media/base/pipeline.cc View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M media/base/pipeline_unittest.cc View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M media/filters/chunk_demuxer.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M media/filters/chunk_demuxer_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M media/filters/ffmpeg_demuxer.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M media/filters/ffmpeg_demuxer_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M media/test/pipeline_integration_test.cc View 1 2 3 4 5 2 chunks +67 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (10 generated)
servolk
5 years ago (2015-12-17 01:06:15 UTC) #3
halliwell
On 2015/12/17 01:06:15, servolk wrote: chromecast/ lgtm % compile error :)
5 years ago (2015-12-17 01:17:30 UTC) #4
DaleCurtis
=>wolenetz
5 years ago (2015-12-17 02:28:54 UTC) #6
servolk
On 2015/12/17 02:28:54, DaleCurtis_OOO_Until_Jan_5 wrote: > =>wolenetz ping
5 years ago (2015-12-18 22:29:13 UTC) #7
servolk
On 2015/12/18 22:29:13, servolk wrote: > On 2015/12/17 02:28:54, DaleCurtis_OOO_Until_Jan_5 wrote: > > =>wolenetz > ...
4 years, 11 months ago (2016-01-06 00:45:14 UTC) #8
wolenetz
On 2016/01/06 00:45:14, servolk wrote: > On 2015/12/18 22:29:13, servolk wrote: > > On 2015/12/17 ...
4 years, 11 months ago (2016-01-06 00:46:56 UTC) #9
wolenetz
Great catch. Thanks for working on this, servolk@. Explicit range removal, not just MSE coded ...
4 years, 11 months ago (2016-01-06 19:28:41 UTC) #10
wolenetz
On 2016/01/06 19:28:41, wolenetz wrote: > Great catch. Thanks for working on this, servolk@. > ...
4 years, 11 months ago (2016-01-06 19:38:30 UTC) #11
hubbe
On 2016/01/06 19:38:30, wolenetz wrote: > On 2016/01/06 19:28:41, wolenetz wrote: > > Great catch. ...
4 years, 11 months ago (2016-01-06 19:43:27 UTC) #12
wolenetz
On 2016/01/06 19:43:27, hubbe wrote: > On 2016/01/06 19:38:30, wolenetz wrote: > > On 2016/01/06 ...
4 years, 11 months ago (2016-01-06 21:02:06 UTC) #13
servolk
https://codereview.chromium.org/1526303004/diff/40001/media/base/pipeline.h File media/base/pipeline.h (right): https://codereview.chromium.org/1526303004/diff/40001/media/base/pipeline.h#newcode353 media/base/pipeline.h:353: // DidLoadingProgress(). On 2016/01/06 19:28:41, wolenetz wrote: > I'm ...
4 years, 11 months ago (2016-01-06 21:05:05 UTC) #14
servolk
On 2016/01/06 21:05:05, servolk wrote: > https://codereview.chromium.org/1526303004/diff/40001/media/base/pipeline.h > File media/base/pipeline.h (right): > > https://codereview.chromium.org/1526303004/diff/40001/media/base/pipeline.h#newcode353 > ...
4 years, 11 months ago (2016-01-13 21:30:18 UTC) #15
wolenetz
On 2016/01/13 21:30:18, servolk wrote: > On 2016/01/06 21:05:05, servolk wrote: > > https://codereview.chromium.org/1526303004/diff/40001/media/base/pipeline.h > ...
4 years, 11 months ago (2016-01-13 22:23:03 UTC) #16
wolenetz
On 2016/01/13 22:23:03, wolenetz wrote: > On 2016/01/13 21:30:18, servolk wrote: > > On 2016/01/06 ...
4 years, 11 months ago (2016-01-14 01:50:18 UTC) #17
wolenetz
Changes look good so far % a couple persistent nits and % discussion with hubbe@. ...
4 years, 11 months ago (2016-01-14 19:25:53 UTC) #18
servolk
https://codereview.chromium.org/1526303004/diff/40001/media/base/demuxer.h File media/base/demuxer.h (right): https://codereview.chromium.org/1526303004/diff/40001/media/base/demuxer.h#newcode28 media/base/demuxer.h:28: // becomes evicted, e.g. due to MSE GC algorithm). ...
4 years, 11 months ago (2016-01-14 19:28:54 UTC) #19
wolenetz
LGTM % one final persistent nit :) hubbe@, servolk@ and I chatted w.r.t. the BufferedDataSource/progress ...
4 years, 11 months ago (2016-01-14 19:53:06 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1526303004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1526303004/120001
4 years, 11 months ago (2016-01-14 19:56:29 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/8293) linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, ...
4 years, 11 months ago (2016-01-14 20:17:37 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1526303004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1526303004/140001
4 years, 11 months ago (2016-01-14 20:59:19 UTC) #28
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 11 months ago (2016-01-14 22:38:31 UTC) #30
commit-bot: I haz the power
4 years, 11 months ago (2016-01-14 22:39:59 UTC) #32
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/21e682ef9c2d34528aa24bf33f2e4b2734ac573b
Cr-Commit-Position: refs/heads/master@{#369585}

Powered by Google App Engine
This is Rietveld 408576698