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

Issue 2701203003: media: Prefer decrypting pipeline when CDM is attached (Closed)

Created:
3 years, 10 months ago by xhwang
Modified:
3 years, 10 months ago
Reviewers:
jrummell, DaleCurtis
CC:
chfremer+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, ddorwin, feature-media-reviews_chromium.org, jam, mcasas+watch+vc_chromium.org, posciak+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

media: Prefer decrypting pipeline when CDM is attached In DecoderSelector, if a CDM is attached, always try the decrypting pipeline first (decoders that support encrypted streams, or decrypting demuxer stream plus regular decoders), so that the pipeline can handle encrytped streams later. BUG=597443 TEST=New tests enabled. Review-Url: https://codereview.chromium.org/2701203003 Cr-Commit-Position: refs/heads/master@{#452975} Committed: https://chromium.googlesource.com/chromium/src/+/b2827d2c7e7fb65a6936bedb3b08409448e4d737

Patch Set 1 #

Total comments: 1

Patch Set 2 #

Total comments: 3

Patch Set 3 : fix tests #

Total comments: 6

Patch Set 4 : comments addressed #

Total comments: 4

Patch Set 5 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+266 lines, -139 lines) Patch
M chrome/browser/media/encrypted_media_browsertest.cc View 1 chunk +1 line, -6 lines 0 comments Download
M content/browser/media/encrypted_media_browsertest.cc View 1 chunk +1 line, -4 lines 0 comments Download
M media/base/audio_decoder_config.h View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M media/base/audio_decoder_config.cc View 1 2 3 4 2 chunks +16 lines, -0 lines 0 comments Download
M media/base/video_decoder_config.h View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M media/base/video_decoder_config.cc View 1 2 3 4 2 chunks +16 lines, -0 lines 0 comments Download
M media/filters/audio_decoder_selector_unittest.cc View 1 10 chunks +78 lines, -31 lines 0 comments Download
M media/filters/decoder_selector.h View 1 3 chunks +8 lines, -0 lines 0 comments Download
M media/filters/decoder_selector.cc View 1 2 3 5 chunks +22 lines, -29 lines 0 comments Download
M media/filters/decoder_stream.cc View 1 1 chunk +7 lines, -1 line 0 comments Download
M media/filters/decrypting_audio_decoder.cc View 2 chunks +1 line, -5 lines 0 comments Download
M media/filters/decrypting_audio_decoder_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M media/filters/decrypting_demuxer_stream.cc View 1 2 3 1 chunk +9 lines, -16 lines 0 comments Download
M media/filters/decrypting_video_decoder.cc View 2 chunks +1 line, -5 lines 0 comments Download
M media/filters/video_decoder_selector_unittest.cc View 1 10 chunks +78 lines, -31 lines 0 comments Download
M media/filters/video_frame_stream_unittest.cc View 1 2 4 chunks +8 lines, -5 lines 0 comments Download
M media/test/pipeline_integration_test.cc View 6 chunks +6 lines, -5 lines 0 comments Download

Messages

Total messages: 60 (35 generated)
xhwang
dalecurtis: Please review from overall DecoderSelector logic's perspective. jrummell: Please review everything. ddorwin: FYI https://codereview.chromium.org/2701203003/diff/60001/media/filters/decoder_selector.cc ...
3 years, 10 months ago (2017-02-21 18:11:34 UTC) #20
DaleCurtis
You'll need to set the is_encrypted flag on the decoder configs passed through to decoders ...
3 years, 10 months ago (2017-02-21 18:26:26 UTC) #21
xhwang
On 2017/02/21 18:26:26, DaleCurtis wrote: > You'll need to set the is_encrypted flag on the ...
3 years, 10 months ago (2017-02-21 19:35:44 UTC) #22
DaleCurtis
On 2017/02/21 at 19:35:44, xhwang wrote: > On 2017/02/21 18:26:26, DaleCurtis wrote: > > You'll ...
3 years, 10 months ago (2017-02-21 20:04:27 UTC) #23
xhwang
On 2017/02/21 20:04:27, DaleCurtis wrote: > On 2017/02/21 at 19:35:44, xhwang wrote: > > On ...
3 years, 10 months ago (2017-02-21 20:34:51 UTC) #24
DaleCurtis
On 2017/02/21 at 20:34:51, xhwang wrote: > On 2017/02/21 20:04:27, DaleCurtis wrote: > > On ...
3 years, 10 months ago (2017-02-21 20:39:14 UTC) #25
xhwang
On 2017/02/21 20:39:14, DaleCurtis wrote: > On 2017/02/21 at 20:34:51, xhwang wrote: > > On ...
3 years, 10 months ago (2017-02-21 20:46:22 UTC) #26
DaleCurtis
On 2017/02/21 at 20:46:22, xhwang wrote: > On 2017/02/21 20:39:14, DaleCurtis wrote: > > On ...
3 years, 10 months ago (2017-02-21 21:20:54 UTC) #27
xhwang
(old chats removed) > > I can write a doc on this later (after M58 ...
3 years, 10 months ago (2017-02-21 21:24:35 UTC) #28
DaleCurtis
On 2017/02/21 at 21:24:35, xhwang wrote: > (old chats removed) > > > I can ...
3 years, 10 months ago (2017-02-21 21:27:25 UTC) #29
xhwang
On 2017/02/21 21:27:25, DaleCurtis wrote: > On 2017/02/21 at 21:24:35, xhwang wrote: > > (old ...
3 years, 10 months ago (2017-02-21 21:29:40 UTC) #30
DaleCurtis
OIC, you're talking about in the new world; not the existing one. sgtm :)
3 years, 10 months ago (2017-02-21 21:34:52 UTC) #31
xhwang
As discussed, PTAL again I think it's actually pretty straightforward to keep decoders in the ...
3 years, 10 months ago (2017-02-23 23:14:04 UTC) #34
xhwang
apparently I need to fix more tests, on that now
3 years, 10 months ago (2017-02-24 00:12:52 UTC) #37
xhwang
dalecurtis / jrummell: tests fixed. PTAL again!
3 years, 10 months ago (2017-02-24 06:21:49 UTC) #42
DaleCurtis
lgtm % some comments and method rename. https://codereview.chromium.org/2701203003/diff/90001/media/base/audio_decoder_config.h File media/base/audio_decoder_config.h (right): https://codereview.chromium.org/2701203003/diff/90001/media/base/audio_decoder_config.h#newcode92 media/base/audio_decoder_config.h:92: // Sets ...
3 years, 10 months ago (2017-02-24 18:03:50 UTC) #43
xhwang
comments addressed
3 years, 10 months ago (2017-02-24 18:15:32 UTC) #44
xhwang
https://codereview.chromium.org/2701203003/diff/90001/media/base/audio_decoder_config.h File media/base/audio_decoder_config.h (right): https://codereview.chromium.org/2701203003/diff/90001/media/base/audio_decoder_config.h#newcode92 media/base/audio_decoder_config.h:92: // Sets the config to be encrypted or not ...
3 years, 10 months ago (2017-02-24 18:18:15 UTC) #45
jrummell
lgtm https://codereview.chromium.org/2701203003/diff/110001/media/base/audio_decoder_config.h File media/base/audio_decoder_config.h (right): https://codereview.chromium.org/2701203003/diff/110001/media/base/audio_decoder_config.h#newcode20 media/base/audio_decoder_config.h:20: #include "media/base/media_util.h" nit: Not sure why logging.h and ...
3 years, 10 months ago (2017-02-24 18:37:37 UTC) #48
xhwang
comments addressed
3 years, 10 months ago (2017-02-24 18:45:47 UTC) #49
xhwang
https://codereview.chromium.org/2701203003/diff/110001/media/base/audio_decoder_config.h File media/base/audio_decoder_config.h (right): https://codereview.chromium.org/2701203003/diff/110001/media/base/audio_decoder_config.h#newcode20 media/base/audio_decoder_config.h:20: #include "media/base/media_util.h" On 2017/02/24 18:37:37, jrummell wrote: > nit: ...
3 years, 10 months ago (2017-02-24 18:46:01 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2701203003/130001
3 years, 10 months ago (2017-02-24 18:46:52 UTC) #53
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_tsan_rel_ng/builds/21833)
3 years, 10 months ago (2017-02-24 19:10:12 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2701203003/130001
3 years, 10 months ago (2017-02-24 21:24:54 UTC) #57
commit-bot: I haz the power
3 years, 10 months ago (2017-02-24 22:58:29 UTC) #60
Message was sent while issue was closed.
Committed patchset #5 (id:130001) as
https://chromium.googlesource.com/chromium/src/+/b2827d2c7e7fb65a6936bedb3b08...

Powered by Google App Engine
This is Rietveld 408576698