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

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

Issue 2523843002: Send audio and video codecs to RTPPayloadRegistry (Closed)
Patch Set: Change strcpy to strncpy 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_strategy.h
diff --git a/webrtc/modules/rtp_rtcp/source/rtp_receiver_strategy.h b/webrtc/modules/rtp_rtcp/source/rtp_receiver_strategy.h
index f435231764652a74622d444ef81e776cdd31dba6..490b4c59d584d6c8ba4a8e688fdeb4ac091992e3 100644
--- a/webrtc/modules/rtp_rtcp/source/rtp_receiver_strategy.h
+++ b/webrtc/modules/rtp_rtcp/source/rtp_receiver_strategy.h
@@ -19,6 +19,8 @@
namespace webrtc {
+struct CodecInst;
+
class TelephoneEventHandler;
// This strategy deals with media-specific RTP packet processing.
@@ -54,12 +56,9 @@ class RTPReceiverStrategy {
// TODO(phoglund): should move out of here along with other payload stuff.
virtual bool ShouldReportCsrcChanges(uint8_t payload_type) const = 0;
- // Notifies the strategy that we have created a new non-RED payload type in
- // the payload registry.
- virtual int32_t OnNewPayloadTypeCreated(
- const char payloadName[RTP_PAYLOAD_NAME_SIZE],
- int8_t payloadType,
- uint32_t frequency) = 0;
+ // Notifies the strategy that we have created a new non-RED audio payload type
+ // in the payload registry.
+ virtual int32_t OnNewPayloadTypeCreated(const CodecInst& audio_codec) = 0;
// Invokes the OnInitializeDecoder callback in a media-specific way.
virtual int32_t InvokeOnInitializeDecoder(
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc ('k') | webrtc/modules/rtp_rtcp/source/rtp_receiver_video.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698