From 87ad57bc753f6745e0d4c77b493485ce7ea1846a Mon Sep 17 00:00:00 2001 From: "sprang@webrtc.org" Date: Mon, 16 Dec 2013 07:43:51 +0000 Subject: [PATCH] Incorrect iterator++ in ModuleRtpRtcpImpl::RegisterVideoBitrateObserver The iterator is incremented both in loop header and loop body. Should only be incremented in header. BUG=2727 R=mflodman@webrtc.org Review URL: https://webrtc-codereview.appspot.com/5899004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5295 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc b/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc index b476f2c740..e58a46cce2 100644 --- a/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc +++ b/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc @@ -1577,7 +1577,6 @@ void ModuleRtpRtcpImpl::RegisterVideoBitrateObserver( RtpRtcp* module = *it; if (module) module->RegisterVideoBitrateObserver(observer); - ++it; } return; }