Index: webrtc/video/video_receive_stream.cc |
diff --git a/webrtc/video/video_receive_stream.cc b/webrtc/video/video_receive_stream.cc |
index bb4e9f603f0e43c16d6fa0b66eef0985b33b1ef8..e8b88a5851b5898e3808ea12dcc505601906ce3d 100644 |
--- a/webrtc/video/video_receive_stream.cc |
+++ b/webrtc/video/video_receive_stream.cc |
@@ -367,6 +367,10 @@ void VideoReceiveStream::EnableEncodedFrameRecording(rtc::PlatformFile file, |
// TODO(tommi): This method grabs a lock 6 times. |
void VideoReceiveStream::OnFrame(const VideoFrame& video_frame) { |
+ // TODO(tommi): OnDecodedFrame grabs a lock, incidentally the same lock |
+ // that OnSyncOffsetUpdated() and OnRenderedFrame() below grab. |
+ stats_proxy_.OnDecodedFrame(); |
+ |
int64_t sync_offset_ms; |
double estimated_freq_khz; |
// TODO(tommi): GetStreamSyncOffsetInMs grabs three locks. One inside the |