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

Unified Diff: webrtc/modules/audio_coding/codecs/audio_format.cc

Issue 2516993002: Pass SdpAudioFormat through Channel, without converting to CodecInst (Closed)
Patch Set: add TODO Created 3 years, 11 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: webrtc/modules/audio_coding/codecs/audio_format.cc
diff --git a/webrtc/modules/audio_coding/codecs/audio_format.cc b/webrtc/modules/audio_coding/codecs/audio_format.cc
index ebd7cb030b4fdbcec19eaef2cbc09cff856ec376..88e42c5d3f65b99c71a89ad42e49740a5b8157ec 100644
--- a/webrtc/modules/audio_coding/codecs/audio_format.cc
+++ b/webrtc/modules/audio_coding/codecs/audio_format.cc
@@ -22,14 +22,28 @@ SdpAudioFormat::SdpAudioFormat(const char* name,
int num_channels)
: name(name), clockrate_hz(clockrate_hz), num_channels(num_channels) {}
+SdpAudioFormat::SdpAudioFormat(const std::string& name,
+ int clockrate_hz,
+ int num_channels)
+ : name(name), clockrate_hz(clockrate_hz), num_channels(num_channels) {}
+
SdpAudioFormat::SdpAudioFormat(const char* name,
int clockrate_hz,
int num_channels,
- Parameters&& param)
+ const Parameters& param)
+ : name(name),
+ clockrate_hz(clockrate_hz),
+ num_channels(num_channels),
+ parameters(param) {}
+
+SdpAudioFormat::SdpAudioFormat(const std::string& name,
+ int clockrate_hz,
+ int num_channels,
+ const Parameters& param)
: name(name),
clockrate_hz(clockrate_hz),
num_channels(num_channels),
- parameters(std::move(param)) {}
+ parameters(param) {}
SdpAudioFormat::~SdpAudioFormat() = default;
SdpAudioFormat& SdpAudioFormat::operator=(const SdpAudioFormat&) = default;
« no previous file with comments | « webrtc/modules/audio_coding/codecs/audio_format.h ('k') | webrtc/modules/audio_coding/codecs/audio_format_conversion.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698