Let FlexfecReceiveStreamImpl send RTCP RRs.
This CL adds an RTP module to FlexfecReceiveStreamImpl, and wires it up to send RTCP RRs. It further makes some methods take const refs instead of values, to make it more clear where packet copies are made. This change reduces the number of copies by one, for the case when media packets are added to the FlexFEC receiver. The end-to-end test is modified to check for RTCP RRs being sent. Part of this modification involves some indentation changes, and the diff thus looks bigger than it logically is. BUG=webrtc:5654 Review-Url: https://codereview.webrtc.org/2625633003 Cr-Commit-Position: refs/heads/master@{#16106}
This commit is contained in:
@ -45,7 +45,8 @@ FlexfecReceiver::FlexfecReceiver(
|
||||
|
||||
FlexfecReceiver::~FlexfecReceiver() = default;
|
||||
|
||||
bool FlexfecReceiver::AddAndProcessReceivedPacket(RtpPacketReceived packet) {
|
||||
bool FlexfecReceiver::AddAndProcessReceivedPacket(
|
||||
const RtpPacketReceived& packet) {
|
||||
RTC_DCHECK_CALLED_SEQUENTIALLY(&sequence_checker_);
|
||||
if (!AddReceivedPacket(std::move(packet))) {
|
||||
return false;
|
||||
@ -58,7 +59,7 @@ FecPacketCounter FlexfecReceiver::GetPacketCounter() const {
|
||||
return packet_counter_;
|
||||
}
|
||||
|
||||
bool FlexfecReceiver::AddReceivedPacket(RtpPacketReceived packet) {
|
||||
bool FlexfecReceiver::AddReceivedPacket(const RtpPacketReceived& packet) {
|
||||
RTC_DCHECK_CALLED_SEQUENTIALLY(&sequence_checker_);
|
||||
|
||||
// RTP packets with a full base header (12 bytes), but without payload,
|
||||
|
||||
Reference in New Issue
Block a user