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

Commit 3a8d3eae authored by Sungsoo Lim's avatar Sungsoo Lim
Browse files

Restore the LOOPING flag in onAudioTearDownEvent

Bug: 15728572
Change-Id: Ib8d118a148a7bb74531c8c025dae479c0a86efcb
parent e8f2c6cf
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;