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

Commit 4575beb3 authored by Andreas Huber's avatar Andreas Huber
Browse files

Revert "Stop audio source if AudioPlayer could not be started"

This reverts commit 022048e9.
parent c9ef89cd
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;
        }