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

Issue 10800041: Update media duration if data is appended after the previous duration (Closed)

Created:
8 years, 5 months ago by vrk (LEFT CHROMIUM)
Modified:
8 years, 4 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Update media duration if data is appended after the previous duration BUG=139044 TEST=media_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=149651

Patch Set 1 #

Total comments: 1

Patch Set 2 : rebase #

Total comments: 4

Patch Set 3 : Respond to CR + fix unittest compiles #

Total comments: 1

Patch Set 4 : . #

Patch Set 5 : fix ChunkDemuxer tests #

Total comments: 1

Patch Set 6 : . #

Total comments: 18

Patch Set 7 : Respond to CR #

Patch Set 8 : . #

Total comments: 7

Patch Set 9 : revert pipeline.h change #

Patch Set 10 : response to CR #

Patch Set 11 : rebase ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -10 lines) Patch
M media/base/clock.cc View 1 2 3 4 5 6 1 chunk +4 lines, -1 line 0 comments Download
M media/filters/chunk_demuxer.h View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download
M media/filters/chunk_demuxer.cc View 1 2 3 4 5 6 7 8 9 7 chunks +44 lines, -8 lines 0 comments Download
M media/filters/chunk_demuxer_unittest.cc View 1 2 3 4 5 6 1 chunk +32 lines, -0 lines 0 comments Download
M webkit/media/webmediaplayer_impl.cc View 1 2 3 4 5 6 7 2 chunks +13 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
vrk (LEFT CHROMIUM)
This is another not-to-be-committed CL based on https://chromiumcodereview.appspot.com/10803019/ https://chromiumcodereview.appspot.com/10800041/diff/1/media/base/data_source.h File media/base/data_source.h (left): https://chromiumcodereview.appspot.com/10800041/diff/1/media/base/data_source.h#oldcode26 media/base/data_source.h:26: virtual ...
8 years, 5 months ago (2012-07-19 19:15:42 UTC) #1
acolwell GONE FROM CHROMIUM
https://chromiumcodereview.appspot.com/10800041/diff/3001/media/filters/chunk_demuxer.cc File media/filters/chunk_demuxer.cc (left): https://chromiumcodereview.appspot.com/10800041/diff/3001/media/filters/chunk_demuxer.cc#oldcode943 media/filters/chunk_demuxer.cc:943: host_->SetDuration(duration_); This isn't needed anymore because of the code ...
8 years, 5 months ago (2012-07-20 21:18:36 UTC) #2
vrk (LEFT CHROMIUM)
Will add tests next! I described some behavior decisions in the (code review) comments -- ...
8 years, 4 months ago (2012-07-26 22:27:26 UTC) #3
acolwell GONE FROM CHROMIUM
Looks pretty good. I'm assuming explicit duration setting from JavaScript will be in a different ...
8 years, 4 months ago (2012-07-27 00:03:22 UTC) #4
vrk (LEFT CHROMIUM)
Thanks Aaron! Responded to comments and added a couple unit tests. > Looks pretty good. ...
8 years, 4 months ago (2012-07-28 01:42:05 UTC) #5
acolwell GONE FROM CHROMIUM
LGTM https://chromiumcodereview.appspot.com/10800041/diff/16003/media/base/pipeline.h File media/base/pipeline.h (right): https://chromiumcodereview.appspot.com/10800041/diff/16003/media/base/pipeline.h#newcode296 media/base/pipeline.h:296: virtual void AddBufferedTimeRange(base::TimeDelta start, nit: Revert this too? ...
8 years, 4 months ago (2012-07-30 21:37:45 UTC) #6
vrk (LEFT CHROMIUM)
8 years, 4 months ago (2012-07-31 22:39:01 UTC) #7
Thanks for reviewing!

https://chromiumcodereview.appspot.com/10800041/diff/16003/media/base/pipeline.h
File media/base/pipeline.h (right):

https://chromiumcodereview.appspot.com/10800041/diff/16003/media/base/pipelin...
media/base/pipeline.h:296: virtual void AddBufferedTimeRange(base::TimeDelta
start,
On 2012/07/30 21:37:45, acolwell wrote:
> nit: Revert this too?

Done.

https://chromiumcodereview.appspot.com/10800041/diff/16003/media/filters/chun...
File media/filters/chunk_demuxer.cc (right):

https://chromiumcodereview.appspot.com/10800041/diff/16003/media/filters/chun...
media/filters/chunk_demuxer.cc:939: if (duration > duration_)
On 2012/07/30 21:37:45, acolwell wrote:
> I believe the new spec text specifies that only the first init segment w/ a
> duration should effect duration_. Change this to duration !=
base::TimeDelta()?

Changed to if (duration != base::TimeDelta() && duration_ == base::TimeDelta()).

https://chromiumcodereview.appspot.com/10800041/diff/16003/media/filters/chun...
media/filters/chunk_demuxer.cc:1077: 
On 2012/07/30 21:37:45, acolwell wrote:
> Based on the spec text, I believe if we reach here and duration_ still equals
> base::TimeDelta() then it should get set to kInfiniteDuration().

Done.

Powered by Google App Engine
This is Rietveld 408576698