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

Commit 95165fd5 authored by Wei Jia's avatar Wei Jia Committed by Gerrit Code Review
Browse files

Merge "Avoid scanning sources when decoder state is shutdown"

parents e7d3c72f cbcbb79c
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1688,8 +1688,10 @@ void NuPlayer::flushDecoder(bool audio, bool needShutdown) {
    // Make sure we don't continue to scan sources until we finish flushing.
    ++mScanSourcesGeneration;
    if (mScanSourcesPending) {
        if (!needShutdown) {
            mDeferredActions.push_back(
                    new SimpleAction(&NuPlayer::performScanSources));
        }
        mScanSourcesPending = false;
    }