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

Commit 397edb33 authored by Glenn Kasten's avatar Glenn Kasten
Browse files

Fix AudioTrack pause followed by stop

Now the stop is not a nop.

Bug: 10993355
Change-Id: Idfbfd6d14897574578b80648a16e0fc73765cb6c
parent 3c928c3a
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -436,8 +436,7 @@ status_t AudioTrack::start()
void AudioTrack::stop()
{
    AutoMutex lock(mLock);
    // FIXME pause then stop should not be a nop
    if (mState != STATE_ACTIVE) {
    if (mState != STATE_ACTIVE && mState != STATE_PAUSED) {
        return;
    }