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

Unified Diff: content/renderer/media/cdm/ppapi_decryptor.cc

Issue 2543623003: media: Allow config change between clear and encrypted streams (Closed)
Patch Set: comments addressed Created 3 years, 10 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: content/renderer/media/cdm/ppapi_decryptor.cc
diff --git a/content/renderer/media/cdm/ppapi_decryptor.cc b/content/renderer/media/cdm/ppapi_decryptor.cc
index ae9d90ad517cc06095720c5c50c7ea650225aaec..bfca0d1db301267c52df022a3e1bed2475c9b343 100644
--- a/content/renderer/media/cdm/ppapi_decryptor.cc
+++ b/content/renderer/media/cdm/ppapi_decryptor.cc
@@ -248,6 +248,8 @@ void PpapiDecryptor::Decrypt(
return;
}
+ // TODO(xhwang): If the buffer is not encrypted, return it directly.
+
DVLOG(3) << __func__ << " - stream_type: " << stream_type;
if (!CdmDelegate() ||
!CdmDelegate()->Decrypt(stream_type, encrypted, decrypt_cb)) {
@@ -279,7 +281,6 @@ void PpapiDecryptor::InitializeAudioDecoder(
}
DVLOG(2) << __func__;
- DCHECK(config.is_encrypted());
DCHECK(config.IsValidConfig());
audio_decoder_init_cb_ = init_cb;
@@ -303,7 +304,6 @@ void PpapiDecryptor::InitializeVideoDecoder(
}
DVLOG(2) << __func__;
- DCHECK(config.is_encrypted());
DCHECK(config.IsValidConfig());
video_decoder_init_cb_ = init_cb;
« no previous file with comments | « content/browser/media/media_source_browsertest.cc ('k') | content/renderer/pepper/content_decryptor_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698