Make it possible to enable/disable receive-side RTT with a setter.
This will allow us to enable receive-side RTT without having to recreate all AudioReceiveStream objects. Bug: webrtc:12951 Change-Id: I1227297ec4ebeea9ba15fe2ed904349829b2e669 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/225262 Commit-Queue: Ivo Creusen <ivoc@webrtc.org> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Reviewed-by: Jakob Ivarsson <jakobi@webrtc.org> Cr-Commit-Position: refs/heads/master@{#34464}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
51969310ef
commit
8c40d510c8
@ -303,6 +303,11 @@ int32_t RTCPReceiver::RTT(uint32_t remote_ssrc,
|
||||
return 0;
|
||||
}
|
||||
|
||||
void RTCPReceiver::SetNonSenderRttMeasurement(bool enabled) {
|
||||
MutexLock lock(&rtcp_receiver_lock_);
|
||||
xr_rrtr_status_ = enabled;
|
||||
}
|
||||
|
||||
bool RTCPReceiver::GetAndResetXrRrRtt(int64_t* rtt_ms) {
|
||||
RTC_DCHECK(rtt_ms);
|
||||
MutexLock lock(&rtcp_receiver_lock_);
|
||||
|
||||
Reference in New Issue
Block a user