| Index: media/audio/audio_output_dispatcher_impl.cc
|
| diff --git a/media/audio/audio_output_dispatcher_impl.cc b/media/audio/audio_output_dispatcher_impl.cc
|
| index b29009ab04d5d1089ea114af3c6a65759d1f9322..f50748c905d5071865ce01c32f7309f1b9c3b9d7 100644
|
| --- a/media/audio/audio_output_dispatcher_impl.cc
|
| +++ b/media/audio/audio_output_dispatcher_impl.cc
|
| @@ -146,8 +146,12 @@ bool AudioOutputDispatcherImpl::HasOutputProxies() const {
|
|
|
| bool AudioOutputDispatcherImpl::CreateAndOpenStream() {
|
| DCHECK(task_runner_->BelongsToCurrentThread());
|
| +
|
| + const int stream_id = audio_stream_id_++;
|
| AudioOutputStream* stream = audio_manager_->MakeAudioOutputStream(
|
| - params_, device_id_);
|
| + params_, device_id_,
|
| + base::Bind(&AudioLog::OnLogMessage, base::Unretained(audio_log_.get()),
|
| + stream_id));
|
| if (!stream)
|
| return false;
|
|
|
| @@ -156,7 +160,6 @@ bool AudioOutputDispatcherImpl::CreateAndOpenStream() {
|
| return false;
|
| }
|
|
|
| - const int stream_id = audio_stream_id_++;
|
| audio_stream_ids_[stream] = stream_id;
|
| audio_log_->OnCreated(
|
| stream_id, params_, device_id_);
|
|
|