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

Unified Diff: media/renderers/audio_renderer_impl.cc

Issue 935243002: Decryptors can report kNoKey to WebMediaPlayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android changes Created 5 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: media/renderers/audio_renderer_impl.cc
diff --git a/media/renderers/audio_renderer_impl.cc b/media/renderers/audio_renderer_impl.cc
index 56f3da73973f2f985c2e0622f5d9f396d13e401a..74ef1d249526e694db66df69135315b062108fbc 100644
--- a/media/renderers/audio_renderer_impl.cc
+++ b/media/renderers/audio_renderer_impl.cc
@@ -257,7 +257,8 @@ void AudioRendererImpl::Initialize(
const StatisticsCB& statistics_cb,
const BufferingStateCB& buffering_state_cb,
const base::Closure& ended_cb,
- const PipelineStatusCB& error_cb) {
+ const PipelineStatusCB& error_cb,
+ const base::Closure& waiting_for_decryption_key_cb) {
DVLOG(1) << __FUNCTION__;
DCHECK(task_runner_->BelongsToCurrentThread());
DCHECK(stream);
@@ -317,7 +318,7 @@ void AudioRendererImpl::Initialize(
audio_buffer_stream_->Initialize(
stream, base::Bind(&AudioRendererImpl::OnAudioBufferStreamInitialized,
weak_factory_.GetWeakPtr()),
- set_decryptor_ready_cb, statistics_cb);
+ set_decryptor_ready_cb, statistics_cb, waiting_for_decryption_key_cb);
}
void AudioRendererImpl::OnAudioBufferStreamInitialized(bool success) {

Powered by Google App Engine
This is Rietveld 408576698