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

Issue 1613793002: MediaSourceDelegate: Fix DecryptingDemuxerStream initialization logic. (Closed)

Created:
4 years, 11 months ago by xhwang
Modified:
4 years, 10 months ago
Reviewers:
ddorwin
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, avayvod+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-media_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MediaSourceDelegate: Fix DecryptingDemuxerStream initialization logic. Different CDMs are supported differently. For CDMs that support a Decryptor, we'll try to use DecryptingDemuxerStream in the render side. Otherwise, we'll try to use the CDMs in the browser side. Therefore, if DecryptingDemuxerStream initialization failed, it's still possible that we can handle the audio with a CDM in the browser. Declare demuxer ready now to try that path. Note there's no need to try DecryptingDemuxerStream for video here since it is impossible to handle audio in the browser and handle video in the render process. This also fixes the issue where CdmAttachedCB is fired twice with "false". BUG=578203 TEST=No DCHECK when playing media/L3_audio_L3_video.mp4.mpd. Committed: https://crrev.com/e261467104d141089906fd02e1230306cb8d0040 Cr-Commit-Position: refs/heads/master@{#372842}

Patch Set 1 #

Total comments: 4

Patch Set 2 : comments addressed #

Total comments: 4

Patch Set 3 : rebase only #

Patch Set 4 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -8 lines) Patch
M content/renderer/media/android/media_source_delegate.cc View 1 2 3 4 chunks +23 lines, -8 lines 0 comments Download

Messages

Total messages: 18 (7 generated)
xhwang
PTAL As discussed offline, the logic around this code is complicated and this fix just ...
4 years, 11 months ago (2016-01-21 21:03:30 UTC) #2
ddorwin
Please explain why "there's no reason to keeping trying to initialize video DecryptigDemuxerStream" and why ...
4 years, 11 months ago (2016-01-22 00:58:36 UTC) #3
xhwang
comments addressed
4 years, 10 months ago (2016-01-29 00:46:35 UTC) #5
xhwang
Sorry for the delay. PTAL again! https://chromiumcodereview.appspot.com/1613793002/diff/1/content/renderer/media/android/media_source_delegate.cc File content/renderer/media/android/media_source_delegate.cc (right): https://chromiumcodereview.appspot.com/1613793002/diff/1/content/renderer/media/android/media_source_delegate.cc#newcode157 content/renderer/media/android/media_source_delegate.cc:157: On 2016/01/22 00:58:35, ...
4 years, 10 months ago (2016-01-29 00:47:15 UTC) #6
ddorwin
LGTM with comments. Thanks. https://chromiumcodereview.appspot.com/1613793002/diff/20001/content/renderer/media/android/media_source_delegate.cc File content/renderer/media/android/media_source_delegate.cc (right): https://chromiumcodereview.appspot.com/1613793002/diff/20001/content/renderer/media/android/media_source_delegate.cc#newcode160 content/renderer/media/android/media_source_delegate.cc:160: DCHECK(!set_cdm_ready_cb.is_null()); nit: This one is ...
4 years, 10 months ago (2016-01-29 18:16:28 UTC) #7
xhwang
rebase only
4 years, 10 months ago (2016-02-01 22:48:32 UTC) #8
xhwang
comments addressed
4 years, 10 months ago (2016-02-01 23:34:55 UTC) #10
xhwang
https://chromiumcodereview.appspot.com/1613793002/diff/20001/content/renderer/media/android/media_source_delegate.cc File content/renderer/media/android/media_source_delegate.cc (right): https://chromiumcodereview.appspot.com/1613793002/diff/20001/content/renderer/media/android/media_source_delegate.cc#newcode160 content/renderer/media/android/media_source_delegate.cc:160: DCHECK(!set_cdm_ready_cb.is_null()); On 2016/01/29 18:16:28, ddorwin wrote: > nit: This ...
4 years, 10 months ago (2016-02-01 23:35:25 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1613793002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1613793002/60001
4 years, 10 months ago (2016-02-01 23:38:23 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 10 months ago (2016-02-02 00:54:45 UTC) #16
commit-bot: I haz the power
4 years, 10 months ago (2016-02-02 00:56:41 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e261467104d141089906fd02e1230306cb8d0040
Cr-Commit-Position: refs/heads/master@{#372842}

Powered by Google App Engine
This is Rietveld 408576698