From ff9e2339c1b74a51a9ce7bc2d8b9028eb0ac3837 Mon Sep 17 00:00:00 2001 From: Huachao Mao Date: Tue, 7 Sep 2021 08:14:40 +0800 Subject: [PATCH] Fix stream api iterator not incremented (#2582) --- trunk/src/app/srs_app_statistic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/src/app/srs_app_statistic.cpp b/trunk/src/app/srs_app_statistic.cpp index d861b0fa8..68c85a207 100644 --- a/trunk/src/app/srs_app_statistic.cpp +++ b/trunk/src/app/srs_app_statistic.cpp @@ -500,7 +500,7 @@ srs_error_t SrsStatistic::dumps_streams(SrsJsonArray* arr, int start, int count) srs_error_t err = srs_success; std::map::iterator it = streams.begin(); - for (int i = 0; i < start + count && it != streams.end(); i++) { + for (int i = 0; i < start + count && it != streams.end(); it++, i++) { if (i < start) { continue; }