Revert "Remove playout delay lock."
This reverts commit c623495fd1ff90aada0eb625af91ec17843fefd0. Reason for revert: Need to look into failure in remoting_unittests in Chrome (Webrtc/ConnectionTest.SecondCaptureFailed/0). It looks like the order FrameBuffer2 calls into VCMTiming while receiving frames and updating playout delay values, needs to be synchronized better. Original change's description: > Remove playout delay lock. > Now update the playout delay and related stats on the worker thread. > > This was previously reviewed here: > https://webrtc-review.googlesource.com/c/src/+/172929/ > > With the exception of reducing unnecessarily broad > lock scope in one function in rtp_rtcp_impl.cc > and added comments in rtp_streams_synchronizer.h > > Bug: webrtc:11489 > Change-Id: I77807b5da2accfe774255d9409542d358f288993 > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/174200 > Commit-Queue: Tommi <tommi@webrtc.org> > Reviewed-by: Erik Språng <sprang@webrtc.org> > Cr-Commit-Position: refs/heads/master@{#31193} TBR=tommi@webrtc.org,sprang@webrtc.org # Not skipping CQ checks because original CL landed > 1 day ago. Bug: webrtc:11489 Change-Id: I9149025d2fc10686314e6d4e89d1b92125650c36 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/174757 Reviewed-by: Tommi <tommi@webrtc.org> Commit-Queue: Tommi <tommi@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31197}
This commit is contained in:
@ -774,10 +774,8 @@ std::vector<rtcp::TmmbItem> ModuleRtpRtcpImpl::BoundingSet(bool* tmmbr_owner) {
|
||||
}
|
||||
|
||||
void ModuleRtpRtcpImpl::set_rtt_ms(int64_t rtt_ms) {
|
||||
{
|
||||
rtc::CritScope cs(&critical_section_rtt_);
|
||||
rtt_ms_ = rtt_ms;
|
||||
}
|
||||
rtc::CritScope cs(&critical_section_rtt_);
|
||||
rtt_ms_ = rtt_ms;
|
||||
if (rtp_sender_) {
|
||||
rtp_sender_->packet_history.SetRtt(rtt_ms);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user