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

Unified Diff: webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h

Issue 2515163002: Don't declare function arguments of array type (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
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/source/rtp_payload_registry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h
diff --git a/webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h b/webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h
index fea2293b85993b49ab10e80a78f6fdc950e0d183..fd228e1f168b15c49b1e0e1512e3d91e0621a1bb 100644
--- a/webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h
+++ b/webrtc/modules/rtp_rtcp/include/rtp_payload_registry.h
@@ -38,12 +38,11 @@ class RTPPayloadStrategy {
virtual void UpdatePayloadRate(RtpUtility::Payload* payload,
uint32_t rate) const = 0;
- virtual RtpUtility::Payload* CreatePayloadType(
- const char payload_name[RTP_PAYLOAD_NAME_SIZE],
- int8_t payload_type,
- uint32_t frequency,
- size_t channels,
- uint32_t rate) const = 0;
+ virtual RtpUtility::Payload* CreatePayloadType(const char* payload_name,
+ int8_t payload_type,
+ uint32_t frequency,
+ size_t channels,
+ uint32_t rate) const = 0;
virtual int GetPayloadTypeFrequency(
const RtpUtility::Payload& payload) const = 0;
@@ -60,7 +59,7 @@ class RTPPayloadRegistry {
explicit RTPPayloadRegistry(RTPPayloadStrategy* rtp_payload_strategy);
~RTPPayloadRegistry();
- int32_t RegisterReceivePayload(const char payload_name[RTP_PAYLOAD_NAME_SIZE],
+ int32_t RegisterReceivePayload(const char* payload_name,
int8_t payload_type,
uint32_t frequency,
size_t channels,
@@ -69,7 +68,7 @@ class RTPPayloadRegistry {
int32_t DeRegisterReceivePayload(int8_t payload_type);
- int32_t ReceivePayloadType(const char payload_name[RTP_PAYLOAD_NAME_SIZE],
+ int32_t ReceivePayloadType(const char* payload_name,
uint32_t frequency,
size_t channels,
uint32_t rate,
@@ -144,7 +143,7 @@ class RTPPayloadRegistry {
private:
// Prunes the payload type map of the specific payload type, if it exists.
void DeregisterAudioCodecOrRedTypeRegardlessOfPayloadType(
- const char payload_name[RTP_PAYLOAD_NAME_SIZE],
+ const char* payload_name,
size_t payload_name_length,
uint32_t frequency,
size_t channels,
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/source/rtp_payload_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698