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

Issue 324223003: Prevent incorrect start time from being used during new range creation. (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

Prevent incorrect start time from being used during new range creation. If a SourceBuffer::Remove() call removed the GOP that is currently being appended, an incorrect start timestamp would be used when the next GOP was appended. This ultimately led to a crash if a followup Remove() call ended up deleting the range. This change fixes the code that determines the start timestamp for the range created for the second GOP. BUG=382815 TEST=SourceBufferStreamTest, Remove_WholeGOPBeingAppended Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276471

Patch Set 1 #

Patch Set 2 : Reorg code to avoid a BufferQueue copy. #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -6 lines) Patch
M media/filters/source_buffer_stream.cc View 1 3 chunks +10 lines, -6 lines 5 comments Download
M media/filters/source_buffer_stream_unittest.cc View 1 chunk +27 lines, -0 lines 2 comments Download

Messages

Total messages: 7 (0 generated)
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/324223003/diff/20001/media/filters/source_buffer_stream.cc File media/filters/source_buffer_stream.cc (right): https://codereview.chromium.org/324223003/diff/20001/media/filters/source_buffer_stream.cc#newcode1624 media/filters/source_buffer_stream.cc:1624: last_appended_buffer_timestamp_ = kNoTimestamp(); This prevents the interbuffer distance calculation ...
6 years, 6 months ago (2014-06-10 23:11:14 UTC) #1
wolenetz
First pass through. Looking pretty good. nit: s/an/a/ in the description. https://codereview.chromium.org/324223003/diff/20001/media/filters/source_buffer_stream.cc File media/filters/source_buffer_stream.cc (right): ...
6 years, 6 months ago (2014-06-11 01:53:54 UTC) #2
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/324223003/diff/20001/media/filters/source_buffer_stream.cc File media/filters/source_buffer_stream.cc (right): https://codereview.chromium.org/324223003/diff/20001/media/filters/source_buffer_stream.cc#newcode675 media/filters/source_buffer_stream.cc:675: if (!range->BelongsToRange(potential_next_append_timestamp)) { On 2014/06/11 01:53:54, wolenetz wrote: > ...
6 years, 6 months ago (2014-06-11 16:47:51 UTC) #3
wolenetz
lgtm
6 years, 6 months ago (2014-06-11 16:56:22 UTC) #4
acolwell GONE FROM CHROMIUM
The CQ bit was checked by acolwell@chromium.org
6 years, 6 months ago (2014-06-11 17:02:01 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/acolwell@chromium.org/324223003/20001
6 years, 6 months ago (2014-06-11 17:05:48 UTC) #6
commit-bot: I haz the power
6 years, 6 months ago (2014-06-11 19:12:18 UTC) #7
Message was sent while issue was closed.
Change committed as 276471

Powered by Google App Engine
This is Rietveld 408576698