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

Issue 208263018: Add SupportsConfigChanges() to DemuxerStream. (Closed)

Created:
6 years, 9 months ago by rileya (GONE FROM CHROMIUM)
Modified:
6 years, 9 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@audioconverterchunk
Visibility:
Public.

Description

Add SupportsConfigChanges() to DemuxerStream. This signals to the client whether or not it is expected to be able to handle midstream configuration changes. For instance, in the AudioRendererImpl, we must take a slower path to support config changes. So using this will enable us to pick the faster path when config change handling is unneeded. BUG=347270 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=259484

Patch Set 1 #

Total comments: 4

Patch Set 2 : Improve comments, add impls for DemuxerStream subclasses. #

Patch Set 3 : Remove unnused member in DDS #

Patch Set 4 : Always return true for uninitialized DDS. #

Patch Set 5 : Make comment not specific to video_decoder_config(). #

Total comments: 5

Patch Set 6 : Address comments #

Patch Set 7 : #

Total comments: 1

Patch Set 8 : Rebase #

Patch Set 9 : Remove DCHECK #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -0 lines) Patch
M media/base/demuxer_stream.h View 1 2 3 4 2 chunks +12 lines, -0 lines 0 comments Download
M media/base/fake_text_track_stream.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M media/base/fake_text_track_stream.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M media/base/mock_filters.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M media/filters/chunk_demuxer.h View 1 chunk +1 line, -0 lines 0 comments Download
M media/filters/chunk_demuxer.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M media/filters/decoder_stream.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M media/filters/decrypting_demuxer_stream.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M media/filters/decrypting_demuxer_stream.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M media/filters/fake_demuxer_stream.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M media/filters/fake_demuxer_stream.cc View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M media/filters/fake_demuxer_stream_unittest.cc View 1 2 3 4 5 6 2 chunks +10 lines, -0 lines 0 comments Download
M media/filters/ffmpeg_demuxer.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M media/filters/ffmpeg_demuxer.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
rileya (GONE FROM CHROMIUM)
To support audio config changes seamlessly we need to resample and remix audio immediately as ...
6 years, 9 months ago (2014-03-24 18:54:44 UTC) #1
DaleCurtis
I think the idea is sound, but wait for scherkus@ to comment before going wild ...
6 years, 9 months ago (2014-03-24 19:00:59 UTC) #2
scherkus (not reviewing)
can I get a quick explanation as to how this will be used by downstream ...
6 years, 9 months ago (2014-03-25 17:33:53 UTC) #3
rileya (GONE FROM CHROMIUM)
On 2014/03/25 17:33:53, scherkus wrote: > can I get a quick explanation as to how ...
6 years, 9 months ago (2014-03-25 18:04:11 UTC) #4
scherkus (not reviewing)
On 2014/03/25 18:04:11, rileya wrote: > On 2014/03/25 17:33:53, scherkus wrote: > > can I ...
6 years, 9 months ago (2014-03-25 21:14:47 UTC) #5
scherkus (not reviewing)
https://codereview.chromium.org/208263018/diff/1/media/base/demuxer_stream.h File media/base/demuxer_stream.h (right): https://codereview.chromium.org/208263018/diff/1/media/base/demuxer_stream.h#newcode71 media/base/demuxer_stream.h:71: // Whether or not this DemuxerStream allows midstream configuration ...
6 years, 9 months ago (2014-03-25 21:14:52 UTC) #6
rileya (GONE FROM CHROMIUM)
Updated CL description, added a better comment to SupportsConfigChanges() and made it pure virtual + ...
6 years, 9 months ago (2014-03-25 21:45:06 UTC) #7
DaleCurtis
lgtm
6 years, 9 months ago (2014-03-25 21:58:03 UTC) #8
scherkus (not reviewing)
some q's https://codereview.chromium.org/208263018/diff/200002/media/filters/decoder_stream.cc File media/filters/decoder_stream.cc (right): https://codereview.chromium.org/208263018/diff/200002/media/filters/decoder_stream.cc#newcode373 media/filters/decoder_stream.cc:373: DCHECK(stream_->SupportsConfigChanges()); \o/ https://codereview.chromium.org/208263018/diff/200002/media/filters/decrypting_demuxer_stream.cc File media/filters/decrypting_demuxer_stream.cc (right): https://codereview.chromium.org/208263018/diff/200002/media/filters/decrypting_demuxer_stream.cc#newcode167 ...
6 years, 9 months ago (2014-03-25 22:16:47 UTC) #9
rileya (GONE FROM CHROMIUM)
https://codereview.chromium.org/208263018/diff/200002/media/filters/decrypting_demuxer_stream.cc File media/filters/decrypting_demuxer_stream.cc (right): https://codereview.chromium.org/208263018/diff/200002/media/filters/decrypting_demuxer_stream.cc#newcode167 media/filters/decrypting_demuxer_stream.cc:167: return demuxer_stream_ ? demuxer_stream_->SupportsConfigChanges() : true; On 2014/03/25 22:16:47, ...
6 years, 9 months ago (2014-03-25 22:43:19 UTC) #10
scherkus (not reviewing)
lgtm w/ nit https://codereview.chromium.org/208263018/diff/300001/media/filters/decrypting_demuxer_stream.cc File media/filters/decrypting_demuxer_stream.cc (right): https://codereview.chromium.org/208263018/diff/300001/media/filters/decrypting_demuxer_stream.cc#newcode165 media/filters/decrypting_demuxer_stream.cc:165: DCHECK(demuxer_stream_); we tend to avoid these ...
6 years, 9 months ago (2014-03-25 23:17:58 UTC) #11
rileya (GONE FROM CHROMIUM)
On 2014/03/25 23:17:58, scherkus wrote: > lgtm w/ nit > > https://codereview.chromium.org/208263018/diff/300001/media/filters/decrypting_demuxer_stream.cc > File media/filters/decrypting_demuxer_stream.cc ...
6 years, 9 months ago (2014-03-25 23:34:32 UTC) #12
rileya (GONE FROM CHROMIUM)
The CQ bit was checked by rileya@chromium.org
6 years, 9 months ago (2014-03-25 23:34:41 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rileya@chromium.org/208263018/320001
6 years, 9 months ago (2014-03-25 23:37:20 UTC) #14
commit-bot: I haz the power
6 years, 9 months ago (2014-03-26 04:37:27 UTC) #15
Message was sent while issue was closed.
Change committed as 259484

Powered by Google App Engine
This is Rietveld 408576698