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

Unified Diff: webrtc/api/audio_codecs/audio_format.cc

Issue 2831333002: Allow a received audio codec's payload type to change. (Closed)
Patch Set: Changing log message and comment Created 3 years, 8 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
« no previous file with comments | « webrtc/api/audio_codecs/audio_format.h ('k') | webrtc/media/engine/webrtcvoiceengine.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/audio_codecs/audio_format.cc
diff --git a/webrtc/api/audio_codecs/audio_format.cc b/webrtc/api/audio_codecs/audio_format.cc
index 3a1d0a912dcf8f2a52fd2ec041607953d01bef45..ea5f1839231814fc92cf11b04aed8d3d4e1610d3 100644
--- a/webrtc/api/audio_codecs/audio_format.cc
+++ b/webrtc/api/audio_codecs/audio_format.cc
@@ -45,6 +45,11 @@ SdpAudioFormat::SdpAudioFormat(const std::string& name,
num_channels(num_channels),
parameters(param) {}
+bool SdpAudioFormat::Matches(const SdpAudioFormat& o) const {
+ return STR_CASE_CMP(name.c_str(), o.name.c_str()) == 0 &&
+ clockrate_hz == o.clockrate_hz && num_channels == o.num_channels;
+}
+
SdpAudioFormat::~SdpAudioFormat() = default;
SdpAudioFormat& SdpAudioFormat::operator=(const SdpAudioFormat&) = default;
SdpAudioFormat& SdpAudioFormat::operator=(SdpAudioFormat&&) = default;
« no previous file with comments | « webrtc/api/audio_codecs/audio_format.h ('k') | webrtc/media/engine/webrtcvoiceengine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698