| Index: media/audio/audio_input_device.cc
|
| diff --git a/media/audio/audio_input_device.cc b/media/audio/audio_input_device.cc
|
| index eb31a5723ff53594e1210cbecfa4e74274a38e26..3d6819df89935222db711a18f41974057238738c 100644
|
| --- a/media/audio/audio_input_device.cc
|
| +++ b/media/audio/audio_input_device.cc
|
| @@ -149,11 +149,11 @@ void AudioInputDevice::SetAutomaticGainControl(bool enabled) {
|
| this, enabled));
|
| }
|
|
|
| -void AudioInputDevice::OnStreamCreated(
|
| - base::SharedMemoryHandle handle,
|
| - base::SyncSocket::Handle socket_handle,
|
| - int length,
|
| - int total_segments) {
|
| +void AudioInputDevice::OnStreamCreated(base::SharedMemoryHandle handle,
|
| + base::SyncSocket::Handle socket_handle,
|
| + int length,
|
| + int total_segments,
|
| + bool initially_muted) {
|
| DCHECK(task_runner()->BelongsToCurrentThread());
|
| DCHECK(base::SharedMemory::IsHandleValid(handle));
|
| #if defined(OS_WIN)
|
| @@ -175,6 +175,10 @@ void AudioInputDevice::OnStreamCreated(
|
|
|
| DCHECK(!audio_callback_);
|
| DCHECK(!audio_thread_);
|
| +
|
| + if (initially_muted)
|
| + callback_->OnCaptureMuted(true);
|
| +
|
| audio_callback_.reset(new AudioInputDevice::AudioThreadCallback(
|
| audio_parameters_, handle, length, total_segments, callback_,
|
| base::BindRepeating(&AudioInputDevice::SetLastCallbackTimeToNow, this)));
|
|
|