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

Issue 435303004: Fix buffered ranges when duration is infinite. (Closed)

Created:
6 years, 4 months ago by DaleCurtis
Modified:
6 years, 4 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Fix buffered ranges when duration is infinite. Debug builds would hit a DCHECK(), but release builds would overflow the int64 when manipulating kInfiniteDuration according to position. Trying to estimate based on bytes when the duration is infinite is just plain wrong, so skip estimation in that case. The buffered ranges will now only update according to what FFmpegDemuxer/ChunkDemuxer report in the infinite duration case. BUG=400442 TEST=New layout test https://codereview.chromium.org/499513002/ Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=291504

Patch Set 1 #

Patch Set 2 : No inf. #

Patch Set 3 : Derp. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -2 lines) Patch
M content/renderer/media/buffered_data_source_host_impl.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/media/webmediaplayer_impl.cc View 1 2 1 chunk +7 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
DaleCurtis
Not sure if this is what we want. Do either of you know what the ...
6 years, 4 months ago (2014-08-05 00:00:59 UTC) #1
sandersd (OOO until July 31)
On 2014/08/05 00:00:59, DaleCurtis wrote: > Not sure if this is what we want. Do ...
6 years, 4 months ago (2014-08-05 00:37:22 UTC) #2
sandersd (OOO until July 31)
lgtm
6 years, 4 months ago (2014-08-05 00:38:12 UTC) #3
scherkus (not reviewing)
On 2014/08/05 00:37:22, sandersd wrote: > On 2014/08/05 00:00:59, DaleCurtis wrote: > > Not sure ...
6 years, 4 months ago (2014-08-05 01:31:14 UTC) #4
DaleCurtis
Not sure, ChunkDemuxer does some tricky things with the duration though: https://code.google.com/p/chromium/codesearch#chromium/src/media/filters/chunk_demuxer.cc&l=1368 I'll give it ...
6 years, 4 months ago (2014-08-05 01:41:57 UTC) #5
DaleCurtis
So MSE has it's own buffered() algorithm which is based on the parsed data handed ...
6 years, 4 months ago (2014-08-05 20:56:47 UTC) #6
DaleCurtis
Ping?
6 years, 4 months ago (2014-08-07 20:56:39 UTC) #7
scherkus (not reviewing)
On 2014/08/07 20:56:39, DaleCurtis wrote: > Ping? I feel we should only call AddBufferedTimeRanges() when ...
6 years, 4 months ago (2014-08-07 21:09:35 UTC) #8
DaleCurtis
What would you return to buffered() then? An empty range? https://code.google.com/p/chromium/codesearch#chromium/src/content/renderer/media/webmediaplayer_impl.cc&l=509
6 years, 4 months ago (2014-08-07 23:04:35 UTC) #9
scherkus (not reviewing)
On 2014/08/07 23:04:35, DaleCurtis wrote: > What would you return to buffered() then? An empty ...
6 years, 4 months ago (2014-08-07 23:59:03 UTC) #10
sandersd (OOO until July 31)
On 2014/08/07 23:59:03, scherkus wrote: > On 2014/08/07 23:04:35, DaleCurtis wrote: > > What would ...
6 years, 4 months ago (2014-08-08 00:18:13 UTC) #11
DaleCurtis
Hmm, perhaps clock_->Duration() != MediaDuration. I'll take a closer look.
6 years, 4 months ago (2014-08-08 18:51:35 UTC) #12
DaleCurtis
Hmm, I just downloaded r262871 and get junk values for the buffered end range there ...
6 years, 4 months ago (2014-08-12 20:47:54 UTC) #13
DaleCurtis
scherkus: Ping?
6 years, 4 months ago (2014-08-20 00:54:59 UTC) #14
scherkus (not reviewing)
On 2014/08/20 00:54:59, DaleCurtis wrote: > scherkus: Ping? No matter how you slice it returning ...
6 years, 4 months ago (2014-08-20 18:08:51 UTC) #15
DaleCurtis
Derp, that's what I get for spending like 5 seconds on just fixing the DCHECK. ...
6 years, 4 months ago (2014-08-21 19:54:21 UTC) #16
scherkus (not reviewing)
On 2014/08/21 19:54:21, DaleCurtis wrote: > Derp, that's what I get for spending like 5 ...
6 years, 4 months ago (2014-08-21 20:17:01 UTC) #17
DaleCurtis
Test here: https://codereview.chromium.org/499513002/ will have to wait until after this lands though.
6 years, 4 months ago (2014-08-22 00:26:24 UTC) #18
scherkus (not reviewing)
lgtm thanks for writing a layout test!
6 years, 4 months ago (2014-08-22 01:09:06 UTC) #19
DaleCurtis
The CQ bit was checked by dalecurtis@chromium.org
6 years, 4 months ago (2014-08-22 01:16:40 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/435303004/40001
6 years, 4 months ago (2014-08-22 01:19:53 UTC) #21
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_chromium_gn_compile_rel on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-22 02:53:21 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-22 03:47:10 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/1230)
6 years, 4 months ago (2014-08-22 03:47:11 UTC) #24
DaleCurtis
The CQ bit was checked by dalecurtis@chromium.org
6 years, 4 months ago (2014-08-22 19:39:50 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/435303004/40001
6 years, 4 months ago (2014-08-22 19:40:15 UTC) #26
commit-bot: I haz the power
6 years, 4 months ago (2014-08-22 21:28:55 UTC) #27
Message was sent while issue was closed.
Committed patchset #3 (40001) as 291504

Powered by Google App Engine
This is Rietveld 408576698