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

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

am 4575beb3: Revert "Stop audio source if AudioPlayer could not be started"

* commit '4575beb3':
  Revert "Stop audio source if AudioPlayer could not be started"
parents 93a417da 4575beb3
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -142,10 +142,9 @@ status_t AudioPlayer::start(bool sourceAlreadyStarted) {
                mFirstBuffer = NULL;
            }

            // At this point, source already got started
            // Stop the source when error is found.
            if (!sourceAlreadyStarted) {
                mSource->stop();
            mSource = NULL;
            }

            return err;
        }
@@ -175,9 +174,9 @@ status_t AudioPlayer::start(bool sourceAlreadyStarted) {
                mFirstBuffer = NULL;
            }

            // At this point, source already got started
            // Stop the source when error is found.
            if (!sourceAlreadyStarted) {
                mSource->stop();
            }

            return err;
        }