RtpReceiver: Add RegisterReceivePayload function for VideoCodec

Turns out this function is needed by external code.

BUG=webrtc:6743

Review-Url: https://codereview.webrtc.org/2532663002
Cr-Commit-Position: refs/heads/master@{#15237}
This commit is contained in:
magjed
2016-11-25 02:29:39 -08:00
committed by Commit bot
parent 5de9b6a3ec
commit 6b272c5c37
3 changed files with 8 additions and 0 deletions

View File

@ -59,6 +59,8 @@ class RtpReceiver {
// Registers a receive payload in the payload registry and notifies the media
// receiver strategy.
virtual int32_t RegisterReceivePayload(const CodecInst& audio_codec) = 0;
// Registers a receive payload in the payload registry.
virtual int32_t RegisterReceivePayload(const VideoCodec& video_codec) = 0;
// TODO(magjed): Remove once external code is updated.
virtual int32_t RegisterReceivePayload(
const char payload_name[RTP_PAYLOAD_NAME_SIZE],