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

Commit 4ec67468 authored by Wei Jia's avatar Wei Jia
Browse files

NuPlayerDriver: put player in paused state when reaching EOS.

Bug: 17352759
Change-Id: I19b183e0a86b712524f79ec7c35e32b5a5b47bc6
parent 3c15d9b1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -627,11 +627,11 @@ void NuPlayerDriver::notifyListener_l(
        case MEDIA_PLAYBACK_COMPLETE:
        {
            if (mLooping && mState != STATE_RESET_IN_PROGRESS) {
                mLock.unlock();
                mPlayer->seekToAsync(0);
                mLock.lock();
                break;
            }
            mPlayer->pause();
            mState = STATE_PAUSED;
            // fall through
        }