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

Commit dc793ce8 authored by Robert Shih's avatar Robert Shih
Browse files

LiveSession refactor: reverted loop indice change.

Change-Id: I465746b206e2253ad44aae0c59317473bc93f73e
parent 9e2c298d
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);