Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit abe70ef5 authored by Robert Shih's avatar Robert Shih Committed by Android (Google) Code Review
Browse files

Merge "LiveSession refactor: reverted loop indice change."

parents 3f734480 dc793ce8
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1007,8 +1007,7 @@ void LiveSession::onChangeConfiguration3(const sp<AMessage> &msg) {
        uint32_t resumeMask = 0;

        sp<AnotherPacketSource> sources[kMaxStreams];
        // TRICKY: looping from i as earlier streams are already removed from streamMask
        for (size_t j = i; j < kMaxStreams; ++j) {
        for (size_t j = 0; j < kMaxStreams; ++j) {
            if ((streamMask & indexToType(j)) && uri == mStreams[j].mUri) {
                sources[j] = mPacketSources.valueFor(indexToType(j));
                resumeMask |= indexToType(j);