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

Issue 11722008: Encrypted Media: Support config change in DecryptingDemuxerStream. (Closed)

Created:
7 years, 11 months ago by xhwang
Modified:
7 years, 11 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Encrypted Media: Support config change in DecryptingDemuxerStream. The DecryptingDemuxerStream was returning kAborted upon config change, which indirectly caused this crash. Add config change support in this CL. Also, expect the new stream config is still valid and still encrypted. This is ensured by the upstream demuxer. One reason for this change is that we don't have a good way to report error through the read callnack. Returning kAborted would potentially introduce the same crash. As a result, related (invalid/unencrypted config) tests are removed. For now, DecryptingXxxDecoders won't introduce the same crash because they report decoder error immediately when config change is encountered. In a later CL, config change support will be added to these decoders. BUG=167811 TEST=Updated unittests. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175007

Patch Set 1 #

Total comments: 9

Patch Set 2 : resolved comments #

Total comments: 6

Patch Set 3 : comments resolved #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -90 lines) Patch
M media/filters/decrypting_demuxer_stream.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M media/filters/decrypting_demuxer_stream.cc View 1 2 5 chunks +63 lines, -51 lines 0 comments Download
M media/filters/decrypting_demuxer_stream_unittest.cc View 3 chunks +7 lines, -38 lines 0 comments Download
M media/filters/source_buffer_stream.cc View 3 chunks +10 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
xhwang
This CL adds config change support in DecryptingDemuxerStream (DDS) and fixes the crash. I'll add ...
7 years, 11 months ago (2013-01-03 01:14:09 UTC) #1
acolwell GONE FROM CHROMIUM
LGTM % nits https://codereview.chromium.org/11722008/diff/1/media/filters/decrypting_demuxer_stream.cc File media/filters/decrypting_demuxer_stream.cc (right): https://codereview.chromium.org/11722008/diff/1/media/filters/decrypting_demuxer_stream.cc#newcode25 media/filters/decrypting_demuxer_stream.cc:25: static bool IsStreamValidAndEncrytped( nit: s/Encrytped/Encrypted/ https://codereview.chromium.org/11722008/diff/1/media/filters/decrypting_demuxer_stream.cc#newcode207 ...
7 years, 11 months ago (2013-01-03 01:39:39 UTC) #2
ddorwin
LGTM % questions. https://codereview.chromium.org/11722008/diff/1/media/filters/decrypting_demuxer_stream.cc File media/filters/decrypting_demuxer_stream.cc (right): https://codereview.chromium.org/11722008/diff/1/media/filters/decrypting_demuxer_stream.cc#newcode158 media/filters/decrypting_demuxer_stream.cc:158: SetDecoderConfig(); Why was/is this done here ...
7 years, 11 months ago (2013-01-03 01:45:36 UTC) #3
xhwang
https://codereview.chromium.org/11722008/diff/1/media/filters/decrypting_demuxer_stream.cc File media/filters/decrypting_demuxer_stream.cc (right): https://codereview.chromium.org/11722008/diff/1/media/filters/decrypting_demuxer_stream.cc#newcode25 media/filters/decrypting_demuxer_stream.cc:25: static bool IsStreamValidAndEncrytped( On 2013/01/03 01:39:40, acolwell wrote: > ...
7 years, 11 months ago (2013-01-03 17:13:54 UTC) #4
ddorwin
minor stuff https://codereview.chromium.org/11722008/diff/5002/media/filters/decrypting_demuxer_stream.cc File media/filters/decrypting_demuxer_stream.cc (right): https://codereview.chromium.org/11722008/diff/5002/media/filters/decrypting_demuxer_stream.cc#newcode136 media/filters/decrypting_demuxer_stream.cc:136: DCHECK(IsStreamValidAndEncrypted(stream)); WDYT about moving this inside SetDecoderConfig() ...
7 years, 11 months ago (2013-01-03 17:48:29 UTC) #5
xhwang
https://codereview.chromium.org/11722008/diff/5002/media/filters/decrypting_demuxer_stream.cc File media/filters/decrypting_demuxer_stream.cc (right): https://codereview.chromium.org/11722008/diff/5002/media/filters/decrypting_demuxer_stream.cc#newcode136 media/filters/decrypting_demuxer_stream.cc:136: DCHECK(IsStreamValidAndEncrypted(stream)); On 2013/01/03 17:48:29, ddorwin wrote: > WDYT about ...
7 years, 11 months ago (2013-01-03 18:16:04 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/11722008/10001
7 years, 11 months ago (2013-01-03 18:29:41 UTC) #7
commit-bot: I haz the power
7 years, 11 months ago (2013-01-03 20:57:23 UTC) #8
Message was sent while issue was closed.
Change committed as 175007

Powered by Google App Engine
This is Rietveld 408576698