VT: fixed an infinite loop of RR sending.
[Problem] ARTPConnection tried to send RR packet
endlessly due to wrong iteration.
[Solution] Corrects the wrong iteration.
Bug: 214428241
Test: Verified
Signed-off-by: Byeongjo Park <bjo.park@samsung.com>
Change-Id: Id9c741b4d8014789f4b453fea3f6321354bdd088
diff --git a/media/libstagefright/rtsp/ARTPConnection.cpp b/media/libstagefright/rtsp/ARTPConnection.cpp
index 0bd342a..83291f3 100644
--- a/media/libstagefright/rtsp/ARTPConnection.cpp
+++ b/media/libstagefright/rtsp/ARTPConnection.cpp
@@ -558,6 +558,7 @@
if (n != (ssize_t)buffer->size()) {
ALOGW("failed to send RTCP receiver report (%s).",
n >= 0 ? "connection gone" : strerror(errno));
+ ++it;
continue;
}