| Index: webrtc/video/video_receive_stream.cc
|
| diff --git a/webrtc/video/video_receive_stream.cc b/webrtc/video/video_receive_stream.cc
|
| index 59d193377aed62c7fff10683ad62f8ff82b09b5c..cafed17544498fb7aa460ffaf74fc97cd577019e 100644
|
| --- a/webrtc/video/video_receive_stream.cc
|
| +++ b/webrtc/video/video_receive_stream.cc
|
| @@ -528,6 +528,8 @@ bool VideoReceiveStream::Decode() {
|
| // To avoid spamming keyframe requests for a stream that is not active we
|
| // check if we have received a packet within the last 5 seconds.
|
| bool stream_is_active = last_packet_ms && now_ms - *last_packet_ms < 5000;
|
| + if (!stream_is_active)
|
| + stats_proxy_.OnStreamInactive();
|
|
|
| // If we recently have been receiving packets belonging to a keyframe then
|
| // we assume a keyframe is currently being received.
|
|
|