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

Issue 1119163005: Return EOS when selected_range_ is NULL in SourceBufferStream (Closed)

Created:
5 years, 7 months ago by landell
Modified:
5 years, 7 months ago
Reviewers:
wolenetz
CC:
chromium-reviews, feature-media-reviews_chromium.org, chcunningham
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Return EOS when selected_range_ is NULL in SourceBufferStream Fixes the issue where an OnSetDuration call truncates the selected_range_ and resets the next_buffer_position. kEndOfStream is now returned instead of kNeedBuffer from GetNextBufferInternal when selected_ranges_ is NULL. BUG=484992 Committed: https://crrev.com/0fcb1283c641e321545fa809b62bd3b285e8b7ca Cr-Commit-Position: refs/heads/master@{#329753}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Merge all EOS checks to single function and add unit tests #

Total comments: 9

Patch Set 3 : Fix review nitpicks #

Total comments: 2

Patch Set 4 : Final nipicks #

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

Messages

Total messages: 20 (4 generated)
landell
@reviewers: Please have a look if this make sense. I have reproduced this issue with ...
5 years, 7 months ago (2015-05-05 12:55:39 UTC) #2
DaleCurtis
-scherkus,+chcunningham
5 years, 7 months ago (2015-05-05 17:44:43 UTC) #4
wolenetz
Thanks for digging into this and finding a potential fix! Would you please also file ...
5 years, 7 months ago (2015-05-05 20:51:35 UTC) #5
landell
https://codereview.chromium.org/1119163005/diff/1/media/filters/source_buffer_stream.cc File media/filters/source_buffer_stream.cc (right): https://codereview.chromium.org/1119163005/diff/1/media/filters/source_buffer_stream.cc#newcode1102 media/filters/source_buffer_stream.cc:1102: if (end_of_stream_ && (!selected_range_ || IsEndSelected())) On 2015/05/05 20:51:35, ...
5 years, 7 months ago (2015-05-06 08:59:53 UTC) #6
landell
Let's see if these changes was what you had in mind. https://codereview.chromium.org/1119163005/diff/1/media/filters/source_buffer_stream.cc File media/filters/source_buffer_stream.cc (right): ...
5 years, 7 months ago (2015-05-06 10:46:53 UTC) #7
landell
Ping. Do you have time to look at my latest changes?
5 years, 7 months ago (2015-05-12 09:29:50 UTC) #8
wolenetz
On 2015/05/12 09:29:50, landell wrote: > Ping. Do you have time to look at my ...
5 years, 7 months ago (2015-05-12 14:17:45 UTC) #9
wolenetz
lgtm % nits. Thanks for adding tests! R-=chcunningham@ (I ok'ed this R with Chris offline.) ...
5 years, 7 months ago (2015-05-12 20:36:24 UTC) #11
wolenetz
Also, (sorry for spam), please update the CL description to remove the last paragraph, and ...
5 years, 7 months ago (2015-05-12 20:38:07 UTC) #12
landell
Fixed the remaining nitpicks. I let you have a final look before comitting. https://codereview.chromium.org/1119163005/diff/20001/media/filters/source_buffer_stream.cc File ...
5 years, 7 months ago (2015-05-13 09:55:57 UTC) #13
wolenetz
One nit was unfixed and another nit was mis-fixed :) Please fix the following (and ...
5 years, 7 months ago (2015-05-13 18:23:02 UTC) #14
landell
Sorry, I guess I am unfamilitar with both this system and this piece of code. ...
5 years, 7 months ago (2015-05-13 19:18:21 UTC) #15
wolenetz
On 2015/05/13 19:18:21, landell wrote: > Sorry, I guess I am unfamilitar with both this ...
5 years, 7 months ago (2015-05-13 23:00:51 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1119163005/60001
5 years, 7 months ago (2015-05-13 23:01:18 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 7 months ago (2015-05-14 00:10:24 UTC) #19
commit-bot: I haz the power
5 years, 7 months ago (2015-05-14 00:11:14 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/0fcb1283c641e321545fa809b62bd3b285e8b7ca
Cr-Commit-Position: refs/heads/master@{#329753}

Powered by Google App Engine
This is Rietveld 408576698