Index: webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h |
diff --git a/webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h b/webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h |
index 11bc9433a45709dd73255d0d0f3c64766488a613..81b46f8abf9e2edf6ffca3c54ffd986e1ab8f072 100644 |
--- a/webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h |
+++ b/webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h |
@@ -195,9 +195,17 @@ class RtpData { |
virtual int32_t OnReceivedPayloadData(const uint8_t* payload_data, |
size_t payload_size, |
const WebRtcRTPHeader* rtp_header) = 0; |
+}; |
+ |
+// Callback interface for packets recovered by FlexFEC or ULPFEC. In |
+// the FlexFEC case, the implementation should be able to demultiplex |
+// the recovered RTP packets based on SSRC. |
+class RecoveredPacketReceiver { |
+ public: |
+ virtual void OnRecoveredPacket(const uint8_t* packet, size_t length) = 0; |
- virtual bool OnRecoveredPacket(const uint8_t* packet, |
- size_t packet_length) = 0; |
+ protected: |
+ virtual ~RecoveredPacketReceiver() = default; |
}; |
class RtpFeedback { |
@@ -400,10 +408,6 @@ class NullRtpData : public RtpData { |
const WebRtcRTPHeader* rtp_header) override { |
return 0; |
} |
- |
- bool OnRecoveredPacket(const uint8_t* packet, size_t packet_length) override { |
- return true; |
- } |
}; |
// Statistics about packet loss for a single directional connection. All values |