| Index: remoting/host/chromoting_host.cc
|
| diff --git a/remoting/host/chromoting_host.cc b/remoting/host/chromoting_host.cc
|
| index c2f8f974b460d13fac0cc8cc4f266e62b90bfb5a..1d209694ba71613cb8df338d8c0a37b077093172 100644
|
| --- a/remoting/host/chromoting_host.cc
|
| +++ b/remoting/host/chromoting_host.cc
|
| @@ -81,6 +81,16 @@ ChromotingHost::ChromotingHost(
|
| DCHECK(signal_strategy);
|
| DCHECK(desktop_environment_);
|
| DCHECK(context_->network_task_runner()->BelongsToCurrentThread());
|
| +
|
| + if (!desktop_environment_->audio_capturer()) {
|
| + // Disable audio by replacing our list of supported audio configurations
|
| + // with the NONE config.
|
| + protocol_config_->mutable_audio_configs()->clear();
|
| + protocol_config_->mutable_audio_configs()->push_back(
|
| + protocol::ChannelConfig(protocol::ChannelConfig::TRANSPORT_NONE,
|
| + protocol::kDefaultStreamVersion,
|
| + protocol::ChannelConfig::CODEC_VERBATIM));
|
| + }
|
| }
|
|
|
| ChromotingHost::~ChromotingHost() {
|
|
|