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

Unified Diff: media/filters/decrypting_video_decoder.cc

Issue 2318933008: media: Update logging to display the missing keyId (Closed)
Patch Set: Created 4 years, 3 months 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: media/filters/decrypting_video_decoder.cc
diff --git a/media/filters/decrypting_video_decoder.cc b/media/filters/decrypting_video_decoder.cc
index a550709c489de7f215f894f6194beb68e0f088d2..a098eb6f8bb3e5b2b2b5a61e6f332132d56d255f 100644
--- a/media/filters/decrypting_video_decoder.cc
+++ b/media/filters/decrypting_video_decoder.cc
@@ -9,6 +9,7 @@
#include "base/location.h"
#include "base/logging.h"
#include "base/single_thread_task_runner.h"
+#include "base/strings/string_number_conversions.h"
#include "base/trace_event/trace_event.h"
#include "media/base/bind_to_current_loop.h"
#include "media/base/cdm_context.h"
@@ -241,8 +242,12 @@ void DecryptingVideoDecoder::DeliverFrame(
}
if (status == Decryptor::kNoKey) {
- DVLOG(2) << "DeliverFrame() - kNoKey";
- MEDIA_LOG(DEBUG, media_log_) << GetDisplayName() << ": no key";
+ std::string key_id =
+ scoped_pending_buffer_to_decode->decrypt_config()->key_id();
+ std::string missing_key_id = base::HexEncode(key_id.data(), key_id.size());
+ DVLOG(1) << "DeliverFrame() - kNoKey, missing keyID " << missing_key_id;
+ MEDIA_LOG(INFO, media_log_) << GetDisplayName()
+ << ": no key, missing keyId " << missing_key_id;
// Set |pending_buffer_to_decode_| back as we need to try decoding the
// pending buffer again when new key is added to the decryptor.
« media/filters/decrypting_demuxer_stream.cc ('K') | « media/filters/decrypting_demuxer_stream.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698