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

Commit bbc09405 authored by Andreas Huber's avatar Andreas Huber Committed by Android Git Automerger
Browse files

am a6490c65: Only mark the audio player as started if it did so successfully.

* commit 'a6490c65':
  Only mark the audio player as started if it did so successfully.
parents d684da86 a6490c65
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -969,8 +969,6 @@ status_t AwesomePlayer::startAudioPlayer_l(bool sendErrorNotification) {
    }

    if (!(mFlags & AUDIOPLAYER_STARTED)) {
        modifyFlags(AUDIOPLAYER_STARTED, SET);

        bool wasSeeking = mAudioPlayer->isSeeking();

        // We've already started the MediaSource in order to enable
@@ -986,6 +984,8 @@ status_t AwesomePlayer::startAudioPlayer_l(bool sendErrorNotification) {
            return err;
        }

        modifyFlags(AUDIOPLAYER_STARTED, SET);

        if (wasSeeking) {
            CHECK(!mAudioPlayer->isSeeking());