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

Unified Diff: webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.h

Issue 2528993002: Revert of Remove RTPPayloadStrategy and simplify RTPPayloadRegistry (Closed)
Patch Set: Created 4 years, 1 month 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/rtp_rtcp/source/rtp_receiver_audio.h
diff --git a/webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.h b/webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.h
index 5fbf738b4b7de4085de16e531a2e75a25ff847b1..15d0bdeae671c4168c26f0c9ac9aa8c7c825e19c 100644
--- a/webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.h
+++ b/webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.h
@@ -64,6 +64,16 @@
const char payload_name[RTP_PAYLOAD_NAME_SIZE],
const PayloadUnion& specific_payload) const override;
+ // We do not allow codecs to have multiple payload types for audio, so we
+ // need to override the default behavior (which is to do nothing).
+ void PossiblyRemoveExistingPayloadType(
+ RtpUtility::PayloadTypeMap* payload_type_map,
+ const char payload_name[RTP_PAYLOAD_NAME_SIZE],
+ size_t payload_name_length,
+ uint32_t frequency,
+ uint8_t channels,
+ uint32_t rate) const;
+
// We need to look out for special payload types here and sometimes reset
// statistics. In addition we sometimes need to tweak the frequency.
void CheckPayloadChanged(int8_t payload_type,
@@ -78,6 +88,8 @@
size_t payload_length,
const AudioPayload& audio_specific,
bool is_red);
+
+ uint32_t last_received_frequency_;
bool telephone_event_forward_to_decoder_;
int8_t telephone_event_payload_type_;
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_payload_registry_unittest.cc ('k') | webrtc/modules/rtp_rtcp/source/rtp_utility.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698