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

Commit 9e5929ad authored by Wei Jia's avatar Wei Jia Committed by Android Git Automerger
Browse files

am 5f3194c9: MidiFile: report correct state during transient period when...

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

* commit '5f3194c9':
  MidiFile: report correct state during transient period when start() is called first time.
parents 26c73acb 5f3194c9
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)