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

Issue 328223002: Fix crash caused by removing the gap at the beginning of a media segment. (Closed)

Created:
6 years, 6 months ago by acolwell GONE FROM CHROMIUM
Modified:
6 years, 6 months ago
Reviewers:
wolenetz
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Fix crash caused by removing the gap at the beginning of a media segment. Some media segments have a start time that is slightly earlier than the timestamp of the first buffer in that segment. If SourceBufferStream::Remove() is called with a range that only covered part of this gap, then the SourceBufferStream code could end up crashing when it was trying to handle the remove. This change fixes the crash by properly removing the empty range that gets created when such a remove occurs. BUG=382815 TEST=SourceBufferStreamTest.Remove_GapAtBeginningOfMediaSegment Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276897

Patch Set 1 : #

Total comments: 14

Patch Set 2 : Address CR comments #

Total comments: 4

Patch Set 3 : Address CR comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -4 lines) Patch
M media/filters/source_buffer_stream.cc View 1 2 6 chunks +30 lines, -4 lines 0 comments Download
M media/filters/source_buffer_stream_unittest.cc View 1 2 1 chunk +30 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
acolwell GONE FROM CHROMIUM
6 years, 6 months ago (2014-06-11 22:01:29 UTC) #1
wolenetz
https://codereview.chromium.org/328223002/diff/20001/media/filters/source_buffer_stream.cc File media/filters/source_buffer_stream.cc (right): https://codereview.chromium.org/328223002/diff/20001/media/filters/source_buffer_stream.cc#newcode1798 media/filters/source_buffer_stream.cc:1798: media_segment_start_time_ < buffers_.front()->GetDecodeTimestamp() && Can |media_segment_start_time_| be kNoTimestamp() here ...
6 years, 6 months ago (2014-06-12 00:00:16 UTC) #2
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/328223002/diff/20001/media/filters/source_buffer_stream.cc File media/filters/source_buffer_stream.cc (right): https://codereview.chromium.org/328223002/diff/20001/media/filters/source_buffer_stream.cc#newcode1798 media/filters/source_buffer_stream.cc:1798: media_segment_start_time_ < buffers_.front()->GetDecodeTimestamp() && On 2014/06/12 00:00:16, wolenetz wrote: ...
6 years, 6 months ago (2014-06-12 01:19:28 UTC) #3
wolenetz
lgtm % nits https://codereview.chromium.org/328223002/diff/20001/media/filters/source_buffer_stream.cc File media/filters/source_buffer_stream.cc (right): https://codereview.chromium.org/328223002/diff/20001/media/filters/source_buffer_stream.cc#newcode2187 media/filters/source_buffer_stream.cc:2187: timestamp >= media_segment_start_time_ && nit: If ...
6 years, 6 months ago (2014-06-12 19:20:50 UTC) #4
acolwell GONE FROM CHROMIUM
Thanks for the review. https://codereview.chromium.org/328223002/diff/20001/media/filters/source_buffer_stream.cc File media/filters/source_buffer_stream.cc (right): https://codereview.chromium.org/328223002/diff/20001/media/filters/source_buffer_stream.cc#newcode2187 media/filters/source_buffer_stream.cc:2187: timestamp >= media_segment_start_time_ && On ...
6 years, 6 months ago (2014-06-12 20:17:59 UTC) #5
acolwell GONE FROM CHROMIUM
The CQ bit was checked by acolwell@chromium.org
6 years, 6 months ago (2014-06-12 20:18:02 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/acolwell@chromium.org/328223002/60001
6 years, 6 months ago (2014-06-12 20:19:21 UTC) #7
commit-bot: I haz the power
6 years, 6 months ago (2014-06-13 02:40:37 UTC) #8
Message was sent while issue was closed.
Change committed as 276897

Powered by Google App Engine
This is Rietveld 408576698