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

Commit 9fcae9fd authored by Andy Hung's avatar Andy Hung Committed by Android (Google) Code Review
Browse files

Merge "audioflinger: fix for playback paused during track transition"

parents 39dfc229 20413a95
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -5462,6 +5462,11 @@ void AudioFlinger::DirectOutputThread::onAddNewTrack_l()
                mFlushPending = true;
            }
        }
    } else if (previousTrack == 0) {
        // there could be an old track added back during track transition for direct
        // output, so always issues flush to flush data of the previous track if it
        // was already destroyed with HAL paused, then flush can resume the playback
        mFlushPending = true;
    }
    PlaybackThread::onAddNewTrack_l();
}