Fix stream api iterator not incremented (#2582)

pull/2614/head
Huachao Mao 3 years ago committed by GitHub
parent 53cb333713
commit ff9e2339c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -500,7 +500,7 @@ srs_error_t SrsStatistic::dumps_streams(SrsJsonArray* arr, int start, int count)
srs_error_t err = srs_success;
std::map<std::string, SrsStatisticStream*>::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;
}

Loading…
Cancel
Save