summaryrefslogtreecommitdiffstats
path: root/chromecast
diff options
context:
space:
mode:
authorhalliwell <halliwell@chromium.org>2015-12-11 15:38:13 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-11 23:39:43 +0000
commit0da6b7c3e59cb2d26c72c4b63055552bee95416b (patch)
tree476d8a888768d5cf3f25c735840a04534e4ae2d2 /chromecast
parent9a9db3fac992a6e861256c7121c6eb1a57fd7273 (diff)
downloadchromium_src-0da6b7c3e59cb2d26c72c4b63055552bee95416b.zip
chromium_src-0da6b7c3e59cb2d26c72c4b63055552bee95416b.tar.gz
chromium_src-0da6b7c3e59cb2d26c72c4b63055552bee95416b.tar.bz2
[Chromecast] Improve logging for key expiry events
OnKeyStatusChanged was not logging the key status or system code. Since these events are rare and can block playback, we should have informative logging when they occur. BUG= Review URL: https://codereview.chromium.org/1522623002 Cr-Commit-Position: refs/heads/master@{#364839}
Diffstat (limited to 'chromecast')
-rw-r--r--chromecast/media/cma/pipeline/av_pipeline_impl.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chromecast/media/cma/pipeline/av_pipeline_impl.cc b/chromecast/media/cma/pipeline/av_pipeline_impl.cc
index 906ca48..ee2d97c 100644
--- a/chromecast/media/cma/pipeline/av_pipeline_impl.cc
+++ b/chromecast/media/cma/pipeline/av_pipeline_impl.cc
@@ -307,7 +307,8 @@ void AvPipelineImpl::OnDecoderError() {
void AvPipelineImpl::OnKeyStatusChanged(const std::string& key_id,
CastKeyStatus key_status,
uint32_t system_code) {
- CMALOG(kLogControl) << __FUNCTION__;
+ CMALOG(kLogControl) << __FUNCTION__ << " key_status= " << key_status
+ << " system_code=" << system_code;
DCHECK(media_keys_);
media_keys_->SetKeyStatus(key_id, key_status, system_code);
}