diff --git a/video/video_stream_decoder.cc b/video/video_stream_decoder.cc index b27a52ea89..0388b9c9da 100644 --- a/video/video_stream_decoder.cc +++ b/video/video_stream_decoder.cc @@ -35,8 +35,7 @@ VideoStreamDecoder::VideoStreamDecoder( rtc::VideoSinkInterface* incoming_video_stream) : video_receiver_(video_receiver), receive_stats_callback_(receive_statistics_proxy), - incoming_video_stream_(incoming_video_stream), - last_rtt_ms_(0) { + incoming_video_stream_(incoming_video_stream) { RTC_DCHECK(video_receiver_); static const int kMaxPacketAgeToNack = 450; @@ -128,8 +127,5 @@ void VideoStreamDecoder::OnCompleteFrame(bool is_keyframe, void VideoStreamDecoder::OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms) { video_receiver_->SetReceiveChannelParameters(max_rtt_ms); - - rtc::CritScope lock(&crit_); - last_rtt_ms_ = avg_rtt_ms; } } // namespace webrtc diff --git a/video/video_stream_decoder.h b/video/video_stream_decoder.h index 812f47b6a3..3cc6e71b55 100644 --- a/video/video_stream_decoder.h +++ b/video/video_stream_decoder.h @@ -96,8 +96,6 @@ class VideoStreamDecoder : public VCMReceiveCallback, ReceiveStatisticsProxy* const receive_stats_callback_; rtc::VideoSinkInterface* const incoming_video_stream_; - - int64_t last_rtt_ms_ RTC_GUARDED_BY(crit_); }; } // namespace webrtc