Enabling rtcp-rsize negotiation and fixing some issues with it.
Sending of reduced size RTCP packets should be enabled only if it's enabled in the send parameters (which corresponds to the remote description). Since the RTCPReceiver's RtcpMode isn't used at all, I removed it to ease confusion. BUG=webrtc:4868 R=pbos@webrtc.org, pthatcher@google.com, pthatcher@webrtc.org, stefan@webrtc.org Review URL: https://codereview.webrtc.org/1713493003 . Cr-Commit-Position: refs/heads/master@{#12057}
This commit is contained in:
@ -47,7 +47,6 @@ RTCPReceiver::RTCPReceiver(
|
||||
: TMMBRHelp(),
|
||||
_clock(clock),
|
||||
receiver_only_(receiver_only),
|
||||
_method(RtcpMode::kOff),
|
||||
_lastReceived(0),
|
||||
_rtpRtcp(*owner),
|
||||
_criticalSectionFeedbacks(
|
||||
@ -103,16 +102,6 @@ RTCPReceiver::~RTCPReceiver() {
|
||||
}
|
||||
}
|
||||
|
||||
RtcpMode RTCPReceiver::Status() const {
|
||||
CriticalSectionScoped lock(_criticalSectionRTCPReceiver);
|
||||
return _method;
|
||||
}
|
||||
|
||||
void RTCPReceiver::SetRTCPStatus(RtcpMode method) {
|
||||
CriticalSectionScoped lock(_criticalSectionRTCPReceiver);
|
||||
_method = method;
|
||||
}
|
||||
|
||||
int64_t RTCPReceiver::LastReceived() {
|
||||
CriticalSectionScoped lock(_criticalSectionRTCPReceiver);
|
||||
return _lastReceived;
|
||||
|
||||
Reference in New Issue
Block a user