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

Commit 5f3194c9 authored by Wei Jia's avatar Wei Jia Committed by Rachad Alao
Browse files

MidiFile: report correct state during transient period when start() is called first time.

Bug: 18905421
Bug: 18994222
Change-Id: Iee47043e60740fab9e62aa28db4cbcec4f339c22
parent 0b460ad7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -293,7 +293,7 @@ bool MidiFile::isPlaying()
{
    ALOGV("MidiFile::isPlaying, mState=%d", int(mState));
    if (!mEasHandle || mPaused) return false;
    return (mState == EAS_STATE_PLAY);
    return (mState == EAS_STATE_PLAY || (mState == EAS_STATE_READY && mRender));
}

status_t MidiFile::getCurrentPosition(int* position)