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

Commit 4c5ed30a authored by Andy Hung's avatar Andy Hung
Browse files

AudioTrack: Allow flush in flush state to clear subsequent written data

Fixes Photos a/v sync issue introduced by
commit 1d3556d6

Test: Photos, pause, then seek several times, then play.
Test: CTS AudioTrackTest, Bluetooth, Offload, Gallery, Play Music.
Bug: 79327282
Change-Id: I9de8edd88b526b5a9dbc9cd720bf725474949dfc
parent 183eb5fb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -806,7 +806,7 @@ void AudioTrack::flush()
        return;
    }
    AutoMutex lock(mLock);
    if (mState == STATE_ACTIVE || mState == STATE_FLUSHED) {
    if (mState == STATE_ACTIVE) {
        return;
    }
    flush_l();