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

Unified Diff: media/filters/decoder_stream.cc

Issue 1423163004: media: Replace DecryptorReadyCB with CdmReadyCB. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed 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
« no previous file with comments | « media/filters/decoder_stream.h ('k') | media/filters/decrypting_audio_decoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/decoder_stream.cc
diff --git a/media/filters/decoder_stream.cc b/media/filters/decoder_stream.cc
index e601da4e6b231e3c8f7a87983794102071a2e3eb..91a5b1e139cfa80b7e4fca466dc65555a4f697b8 100644
--- a/media/filters/decoder_stream.cc
+++ b/media/filters/decoder_stream.cc
@@ -89,7 +89,7 @@ template <DemuxerStream::Type StreamType>
void DecoderStream<StreamType>::Initialize(
DemuxerStream* stream,
const InitCB& init_cb,
- const SetDecryptorReadyCB& set_decryptor_ready_cb,
+ const SetCdmReadyCB& set_cdm_ready_cb,
const StatisticsCB& statistics_cb,
const base::Closure& waiting_for_decryption_key_cb) {
FUNCTION_DVLOG(2);
@@ -104,7 +104,7 @@ void DecoderStream<StreamType>::Initialize(
stream_ = stream;
state_ = STATE_INITIALIZING;
- SelectDecoder(set_decryptor_ready_cb);
+ SelectDecoder(set_cdm_ready_cb);
}
template <DemuxerStream::Type StreamType>
@@ -215,9 +215,9 @@ bool DecoderStream<StreamType>::CanDecodeMore() const {
template <DemuxerStream::Type StreamType>
void DecoderStream<StreamType>::SelectDecoder(
- const SetDecryptorReadyCB& set_decryptor_ready_cb) {
+ const SetCdmReadyCB& set_cdm_ready_cb) {
decoder_selector_->SelectDecoder(
- stream_, set_decryptor_ready_cb,
+ stream_, set_cdm_ready_cb,
base::Bind(&DecoderStream<StreamType>::OnDecoderSelected,
weak_factory_.GetWeakPtr()),
base::Bind(&DecoderStream<StreamType>::OnDecodeOutputReady,
@@ -542,7 +542,7 @@ void DecoderStream<StreamType>::OnDecoderReinitialized(bool success) {
// once is safe.
// For simplicity, don't attempt to fall back to a decryptor. Calling this
// with a null callback ensures that one won't be selected.
- SelectDecoder(SetDecryptorReadyCB());
+ SelectDecoder(SetCdmReadyCB());
} else {
CompleteDecoderReinitialization(true);
}
« no previous file with comments | « media/filters/decoder_stream.h ('k') | media/filters/decrypting_audio_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698