Index: remoting/host/chromoting_host.cc |
diff --git a/remoting/host/chromoting_host.cc b/remoting/host/chromoting_host.cc |
index c2f8f974b460d13fac0cc8cc4f266e62b90bfb5a..77100eb24a2d5ee02b1a93a2c80a2556d9ed8203 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 setting NONE channel config for the audio channel when |
+ // we don't have audio capturer. |
Wez
2012/08/18 00:51:09
nit: "Disable audio by replacing our list of suppo
Sergey Ulanov
2012/08/18 01:43:14
Done.
|
+ 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() { |