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

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

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

* commit 'bbc09405':
  Only mark the audio player as started if it did so successfully.
parents 56d88b5e bbc09405
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());