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

Commit a6490c65 authored by Andreas Huber's avatar Andreas Huber
Browse files

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

Change-Id: I4683f5ca243f9f1b80990028d225d0f6c5973899
related-to-bug: 6500580
parent 4575beb3
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());