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

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

PlaylistFetcher: clear packet sources when adjusting starting sequence number

Bug: 19215971
Change-Id: I4ad29cf0ac24dea330017a1b0159b06922d768ae
parent 1bf8a210
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -977,6 +977,10 @@ void PlaylistFetcher::onDownloadNext() {
        if (err == -EAGAIN) {
            // starting sequence number too low/high
            mTSParser.clear();
            for (size_t i = 0; i < mPacketSources.size(); i++) {
                sp<AnotherPacketSource> packetSource = mPacketSources.valueAt(i);
                packetSource->clear();
            }
            postMonitorQueue();
            return;
        } else if (err == ERROR_OUT_OF_RANGE) {