Add thread/sequence checks to ModuleRtpRtcpImpl.
This ended up with needing to fork the current implementation in order to not break downstream projects that were inheriting from it. While those get updated, we'll move on with the forked class. Bug: webrtc:11581,b/8278269 Change-Id: I05b596cbda71aa5b72894c31a7119d17d4761883 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/175500 Reviewed-by: Per Kjellander <perkj@webrtc.org> Reviewed-by: Erik Språng <sprang@webrtc.org> Commit-Queue: Tommi <tommi@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31334}
This commit is contained in:
@ -48,14 +48,6 @@ ModuleRtpRtcpImpl::RtpSenderContext::RtpSenderContext(
|
||||
&packet_history,
|
||||
config.paced_sender ? config.paced_sender : &non_paced_sender) {}
|
||||
|
||||
RtpRtcp::Configuration::Configuration() = default;
|
||||
RtpRtcp::Configuration::Configuration(Configuration&& rhs) = default;
|
||||
|
||||
std::unique_ptr<RtpRtcp> RtpRtcp::Create(const Configuration& configuration) {
|
||||
RTC_DCHECK(configuration.clock);
|
||||
return std::make_unique<ModuleRtpRtcpImpl>(configuration);
|
||||
}
|
||||
|
||||
ModuleRtpRtcpImpl::ModuleRtpRtcpImpl(const Configuration& configuration)
|
||||
: rtcp_sender_(configuration),
|
||||
rtcp_receiver_(configuration, this),
|
||||
@ -312,7 +304,7 @@ RTCPSender::FeedbackState ModuleRtpRtcpImpl::GetFeedbackState() {
|
||||
state.send_bitrate =
|
||||
rtp_sender_->packet_sender.GetSendRates().Sum().bps<uint32_t>();
|
||||
}
|
||||
state.module = this;
|
||||
state.receiver = &rtcp_receiver_;
|
||||
|
||||
LastReceivedNTP(&state.last_rr_ntp_secs, &state.last_rr_ntp_frac,
|
||||
&state.remote_sr);
|
||||
@ -793,11 +785,6 @@ bool ModuleRtpRtcpImpl::LastReceivedNTP(
|
||||
return true;
|
||||
}
|
||||
|
||||
// Called from RTCPsender.
|
||||
std::vector<rtcp::TmmbItem> ModuleRtpRtcpImpl::BoundingSet(bool* tmmbr_owner) {
|
||||
return rtcp_receiver_.BoundingSet(tmmbr_owner);
|
||||
}
|
||||
|
||||
void ModuleRtpRtcpImpl::set_rtt_ms(int64_t rtt_ms) {
|
||||
{
|
||||
rtc::CritScope cs(&critical_section_rtt_);
|
||||
|
||||
Reference in New Issue
Block a user