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

Commit 82d04827 authored by Sungsoo Lim's avatar Sungsoo Lim Committed by Android (Google) Code Review
Browse files

Merge "Restore the LOOPING flag in onAudioTearDownEvent"

parents 72d039f0 3a8d3eae
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2949,6 +2949,7 @@ void AwesomePlayer::onAudioTearDownEvent() {

    sp<IMediaHTTPService> savedHTTPService = mHTTPService;

    bool wasLooping = mFlags & LOOPING;
    // Reset and recreate
    reset_l();

@@ -2967,6 +2968,9 @@ void AwesomePlayer::onAudioTearDownEvent() {
        // a MEDIA_ERROR to the client and abort the prepare
        mFlags |= PREPARE_CANCELLED;
    }
    if (wasLooping) {
        mFlags |= LOOPING;
    }

    mAudioTearDown = true;
    mIsAsyncPrepare = true;