diff --git a/video/video_receive_stream.cc b/video/video_receive_stream.cc index 904e0a509d..0f87d651da 100644 --- a/video/video_receive_stream.cc +++ b/video/video_receive_stream.cc @@ -515,7 +515,6 @@ void VideoReceiveStream::OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms) { RTC_DCHECK_CALLED_SEQUENTIALLY(&module_process_sequence_checker_); frame_buffer_->UpdateRtt(max_rtt_ms); rtp_video_stream_receiver_.UpdateRtt(max_rtt_ms); - video_stream_decoder_->UpdateRtt(max_rtt_ms); } void VideoReceiveStream::OnRttUpdated(int64_t rtt_ms) { diff --git a/video/video_stream_decoder.cc b/video/video_stream_decoder.cc index 8cc9d08fb3..fad7da8f22 100644 --- a/video/video_stream_decoder.cc +++ b/video/video_stream_decoder.cc @@ -114,7 +114,4 @@ void VideoStreamDecoder::OnCompleteFrame(bool is_keyframe, size_t size_bytes, VideoContentType content_type) {} -void VideoStreamDecoder::UpdateRtt(int64_t max_rtt_ms) { - video_receiver_->SetReceiveChannelParameters(max_rtt_ms); -} } // namespace webrtc diff --git a/video/video_stream_decoder.h b/video/video_stream_decoder.h index 114c953c85..54554ebab3 100644 --- a/video/video_stream_decoder.h +++ b/video/video_stream_decoder.h @@ -77,9 +77,6 @@ class VideoStreamDecoder : public VCMReceiveCallback, void RegisterReceiveStatisticsProxy( ReceiveStatisticsProxy* receive_statistics_proxy); - // Called by VideoReceiveStream when stats are updated. - void UpdateRtt(int64_t max_rtt_ms); - private: // Used for all registered callbacks except rendering. rtc::CriticalSection crit_;