Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(325)

Unified Diff: remoting/protocol/content_description.cc

Issue 10831246: Speex encoding/decoding. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: spx_int16_t -> int16 Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: remoting/protocol/content_description.cc
diff --git a/remoting/protocol/content_description.cc b/remoting/protocol/content_description.cc
index 70ba05b570ae48b4747ec83b0f998368fff7562a..43cea224da05d89e3f601e1febaca38529cd5bc0 100644
--- a/remoting/protocol/content_description.cc
+++ b/remoting/protocol/content_description.cc
@@ -44,6 +44,7 @@ const char kVerbatimCodec[] = "verbatim";
const char kVp8Codec[] = "vp8";
const char kZipCodec[] = "zip";
const char kVorbisCodec[] = "vorbis";
+const char kSpeexCodec[] = "speex";
const char* GetTransportName(ChannelConfig::TransportType type) {
switch (type) {
@@ -68,6 +69,8 @@ const char* GetCodecName(ChannelConfig::Codec type) {
return kZipCodec;
case ChannelConfig::CODEC_VORBIS:
return kVorbisCodec;
+ case ChannelConfig::CODEC_SPEEX:
+ return kSpeexCodec;
default:
break;
}
@@ -121,6 +124,8 @@ bool ParseCodecName(const std::string& value, ChannelConfig::Codec* codec) {
*codec = ChannelConfig::CODEC_ZIP;
} else if (value == kVorbisCodec) {
*codec = ChannelConfig::CODEC_VORBIS;
+ } else if (value == kSpeexCodec) {
+ *codec = ChannelConfig::CODEC_SPEEX;
} else {
return false;
}

Powered by Google App Engine
This is Rietveld 408576698