| Index: media/filters/decrypting_video_decoder.cc
|
| diff --git a/media/filters/decrypting_video_decoder.cc b/media/filters/decrypting_video_decoder.cc
|
| index 3627080a8653f9ae9d85c04b5f6f75f893886c9e..fdffe83e84c9448eec856776fad3e93f57624429 100644
|
| --- a/media/filters/decrypting_video_decoder.cc
|
| +++ b/media/filters/decrypting_video_decoder.cc
|
| @@ -39,7 +39,7 @@
|
|
|
| void DecryptingVideoDecoder::Initialize(const VideoDecoderConfig& config,
|
| bool /* low_delay */,
|
| - const InitCB& init_cb,
|
| + const PipelineStatusCB& status_cb,
|
| const OutputCB& output_cb) {
|
| DVLOG(2) << "Initialize()";
|
| DCHECK(task_runner_->BelongsToCurrentThread());
|
| @@ -51,7 +51,7 @@
|
| DCHECK(config.IsValidConfig());
|
| DCHECK(config.is_encrypted());
|
|
|
| - init_cb_ = BindToCurrentLoop(init_cb);
|
| + init_cb_ = BindToCurrentLoop(status_cb);
|
| output_cb_ = BindToCurrentLoop(output_cb);
|
| weak_this_ = weak_factory_.GetWeakPtr();
|
| config_ = config;
|
| @@ -146,7 +146,7 @@
|
| base::ResetAndReturn(&set_decryptor_ready_cb_).Run(DecryptorReadyCB());
|
| pending_buffer_to_decode_ = NULL;
|
| if (!init_cb_.is_null())
|
| - base::ResetAndReturn(&init_cb_).Run(false);
|
| + base::ResetAndReturn(&init_cb_).Run(DECODER_ERROR_NOT_SUPPORTED);
|
| if (!decode_cb_.is_null())
|
| base::ResetAndReturn(&decode_cb_).Run(kAborted);
|
| if (!reset_cb_.is_null())
|
| @@ -164,7 +164,7 @@
|
| set_decryptor_ready_cb_.Reset();
|
|
|
| if (!decryptor) {
|
| - base::ResetAndReturn(&init_cb_).Run(false);
|
| + base::ResetAndReturn(&init_cb_).Run(DECODER_ERROR_NOT_SUPPORTED);
|
| state_ = kError;
|
| decryptor_attached_cb.Run(false);
|
| return;
|
| @@ -189,7 +189,7 @@
|
| DCHECK(decode_cb_.is_null()); // No Decode() before initialization finished.
|
|
|
| if (!success) {
|
| - base::ResetAndReturn(&init_cb_).Run(false);
|
| + base::ResetAndReturn(&init_cb_).Run(DECODER_ERROR_NOT_SUPPORTED);
|
| decryptor_ = NULL;
|
| state_ = kError;
|
| return;
|
| @@ -202,7 +202,7 @@
|
|
|
| // Success!
|
| state_ = kIdle;
|
| - base::ResetAndReturn(&init_cb_).Run(true);
|
| + base::ResetAndReturn(&init_cb_).Run(PIPELINE_OK);
|
| }
|
|
|
|
|
|
|