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

Issue 2385423002: MediaSource: Fix CHECK crash in append fudge room edge case. (Closed)

Created:
4 years, 2 months ago by chcunningham
Modified:
4 years, 2 months ago
Reviewers:
wolenetz
CC:
chromium-reviews, posciak+watch_chromium.org, feature-media-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MediaSource: Fix CHECK crash in append fudge room edge case. This CHECK is hit by MSE users who make a small Remove() of their last appended frames and then a subsequent Append() as if the previous remove had not occurred. The bug will also manifest if users set duration to just under the current duration - currently equivalent to a small Remove(). Aside: duration truncation will soon be deprecated. If the initial Remove() is small enough (less than the fudge room), RemoveInternal() will fail to see this as causing a discontinuity and will not reset range_for_next_append_. If the next append is beyond the newly-shortened-range-end + fudge room, then CanAppendToEnd will CHECK. BUG=627905 TEST=new unit tests, crash gone from (nsfw) http://ck101.com/thread-3559838-1-1.html?ref=banner Committed: https://crrev.com/1900dd4377b064eefd4e9a3bcf2e115c638ebb5e Cr-Commit-Position: refs/heads/master@{#423735}

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 1

Patch Set 3 : Fix new CFG logic #

Total comments: 16

Patch Set 4 : Rebase and feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -33 lines) Patch
M media/filters/source_buffer_stream.h View 3 chunks +11 lines, -1 line 0 comments Download
M media/filters/source_buffer_stream.cc View 1 2 3 6 chunks +67 lines, -32 lines 0 comments Download
M media/filters/source_buffer_stream_unittest.cc View 1 2 3 1 chunk +50 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (8 generated)
chcunningham
Hey Matt, PTAL
4 years, 2 months ago (2016-10-04 15:03:37 UTC) #3
chcunningham
On 2016/10/04 15:03:37, chcunningham wrote: > Hey Matt, PTAL Friendly ping.
4 years, 2 months ago (2016-10-05 19:22:12 UTC) #4
wolenetz
Yeah, on my radar. Tomorrow morning if not earlier. On Oct 5, 2016 12:22 PM, ...
4 years, 2 months ago (2016-10-05 19:55:51 UTC) #5
wolenetz
LGTM % nits: CL description: * Note in the "if users set duration" paragraph that ...
4 years, 2 months ago (2016-10-05 22:41:09 UTC) #6
wolenetz
https://codereview.chromium.org/2385423002/diff/20001/media/filters/source_buffer_stream.cc File media/filters/source_buffer_stream.cc (right): https://codereview.chromium.org/2385423002/diff/20001/media/filters/source_buffer_stream.cc#newcode210 media/filters/source_buffer_stream.cc:210: // We may not want to not do this. ...
4 years, 2 months ago (2016-10-05 22:52:08 UTC) #7
chcunningham
Thanks Matt. Fixed CL description. https://codereview.chromium.org/2385423002/diff/40001/media/filters/source_buffer_stream.cc File media/filters/source_buffer_stream.cc (right): https://codereview.chromium.org/2385423002/diff/40001/media/filters/source_buffer_stream.cc#newcode1166 media/filters/source_buffer_stream.cc:1166: if (ranges_.empty()) On 2016/10/05 ...
4 years, 2 months ago (2016-10-06 21:57:33 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2385423002/60001
4 years, 2 months ago (2016-10-06 21:59:15 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-06 23:35:28 UTC) #15
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 23:38:29 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1900dd4377b064eefd4e9a3bcf2e115c638ebb5e
Cr-Commit-Position: refs/heads/master@{#423735}

Powered by Google App Engine
This is Rietveld 408576698