Index: webrtc/video/receive_statistics_proxy.cc |
diff --git a/webrtc/video/receive_statistics_proxy.cc b/webrtc/video/receive_statistics_proxy.cc |
index 7852a059134c47e17a198612385afd0ed35d2fa2..61c264fcbe4eae9a547ac6201f9fd71bbe920999 100644 |
--- a/webrtc/video/receive_statistics_proxy.cc |
+++ b/webrtc/video/receive_statistics_proxy.cc |
@@ -648,6 +648,14 @@ void ReceiveStatisticsProxy::OnPreDecode( |
} |
} |
+void ReceiveStatisticsProxy::OnStreamInactive() { |
+ // TODO(sprang): Figure out any other state that should be reset. |
+ |
+ rtc::CritScope lock(&crit_); |
+ // Don't report inter-frame delay if stream was paused. |
+ last_decoded_frame_time_ms_.reset(); |
+} |
+ |
void ReceiveStatisticsProxy::SampleCounter::Add(int sample) { |
sum += sample; |
++num_samples; |