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

Commit 1d365d2f authored by Andy Hung's avatar Andy Hung Committed by Gerrit Code Review
Browse files

Merge "AudioFlinger: Fix destroyTrack_l sequencing for Direct tracks"

parents 0c108c9f 916987e0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2825,6 +2825,9 @@ bool AudioFlinger::PlaybackThread::destroyTrack_l(const sp<Track>& track)
    if (!trackActive) {
        removeTrack_l(track);
    } else if (track->isFastTrack() || track->isOffloaded() || track->isDirect()) {
        if (track->isPausePending()) {
            track->pauseAck();
        }
        track->mState = TrackBase::STOPPING_1;
    }