summaryrefslogtreecommitdiffstats
path: root/remoting/protocol
diff options
context:
space:
mode:
authorkxing@chromium.org <kxing@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-24 22:14:35 +0000
committerkxing@chromium.org <kxing@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-24 22:14:35 +0000
commitbfa30b6028ce51b9059e161f05232ced993f9cdc (patch)
tree32e33a7b4dbd1fbc2aa82b9705245952f4d59ae6 /remoting/protocol
parent98093fb0c03ee3477505d4686c821d3e33e1567c (diff)
downloadchromium_src-bfa30b6028ce51b9059e161f05232ced993f9cdc.zip
chromium_src-bfa30b6028ce51b9059e161f05232ced993f9cdc.tar.gz
chromium_src-bfa30b6028ce51b9059e161f05232ced993f9cdc.tar.bz2
Created define to switch on/off audio.
Review URL: https://chromiumcodereview.appspot.com/10795075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148223 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol')
-rw-r--r--remoting/protocol/session_config.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/remoting/protocol/session_config.cc b/remoting/protocol/session_config.cc
index cf6657d..139d05b 100644
--- a/remoting/protocol/session_config.cc
+++ b/remoting/protocol/session_config.cc
@@ -175,18 +175,16 @@ scoped_ptr<CandidateSessionConfig> CandidateSessionConfig::CreateDefault() {
ChannelConfig(ChannelConfig::TRANSPORT_STREAM,
kDefaultStreamVersion,
ChannelConfig::CODEC_VP8));
- result->mutable_audio_configs()->push_back(
- ChannelConfig(ChannelConfig::TRANSPORT_NONE,
- kDefaultStreamVersion,
- ChannelConfig::CODEC_VERBATIM));
+#if defined(ENABLE_REMOTING_AUDIO)
result->mutable_audio_configs()->push_back(
ChannelConfig(ChannelConfig::TRANSPORT_STREAM,
kDefaultStreamVersion,
ChannelConfig::CODEC_VERBATIM));
+#endif // defined(ENABLE_REMOTING_AUDIO)
result->mutable_audio_configs()->push_back(
- ChannelConfig(ChannelConfig::TRANSPORT_STREAM,
+ ChannelConfig(ChannelConfig::TRANSPORT_NONE,
kDefaultStreamVersion,
- ChannelConfig::CODEC_VORBIS));
+ ChannelConfig::CODEC_VERBATIM));
return result.Pass();
}