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

Unified Diff: chromecast/media/cma/pipeline/media_pipeline_impl.cc

Issue 1407253007: [Chromecast] Allow CMA backend to notify of key expiry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DCHECK for |cdm_| instead of conditional Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chromecast/media/cma/pipeline/media_pipeline_impl.cc
diff --git a/chromecast/media/cma/pipeline/media_pipeline_impl.cc b/chromecast/media/cma/pipeline/media_pipeline_impl.cc
index da9b07526797726744b77e2cc0162d76a48909e6..4be7402de386a9ee0796c2792908bbcfda65b927 100644
--- a/chromecast/media/cma/pipeline/media_pipeline_impl.cc
+++ b/chromecast/media/cma/pipeline/media_pipeline_impl.cc
@@ -155,6 +155,15 @@ void MediaPipelineImpl::OnDecoderError(MediaPipelineBackend::Decoder* decoder) {
}
}
+void MediaPipelineImpl::OnKeyStatusChanged(const std::string& key_id,
+ CastKeyStatus key_status,
+ uint32_t system_code) {
+ CMALOG(kLogControl) << __FUNCTION__;
+ DCHECK(thread_checker_.CalledOnValidThread());
+ DCHECK(cdm_);
+ cdm_->SetKeyStatus(key_id, key_status, system_code);
+}
+
void MediaPipelineImpl::SetCdm(BrowserCdmCast* cdm) {
CMALOG(kLogControl) << __FUNCTION__;
DCHECK(thread_checker_.CalledOnValidThread());

Powered by Google App Engine
This is Rietveld 408576698