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

Commit 16498512 authored by Eric Laurent's avatar Eric Laurent
Browse files

AudioFlinger: Change track ready condition in STOPPING_1 state

Set FS_FILLED only if framesReady() > 0

Change-Id: Ibb1d2e988ff17fcf3a7ab61031a3f85df82f18d5
parent 8d6c292a
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -571,8 +571,10 @@ bool AudioFlinger::PlaybackThread::Track::isReady() const {
        return true;
    }

    if (isStopping() && framesReady() > 0) {
    if (isStopping()) {
        if (framesReady() > 0) {
            mFillingUpStatus = FS_FILLED;
        }
        return true;
    }