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

Commit 22f03209 authored by Chong Zhang's avatar Chong Zhang
Browse files

Set PREPARING flag after setDataSource_l()

Otherwise the reset_l() inside setDataSource_l() will get stuck
waiting for the PREPARING to be cleared.

Bug: 10426788
Change-Id: I7ccdf7abcea71cf150544c7cd3f4781e3a946b97
parent c063c175
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2805,7 +2805,6 @@ void AwesomePlayer::onAudioTearDownEvent() {

    // Reset and recreate
    reset_l();
    mFlags |= PREPARING;

    status_t err;

@@ -2816,6 +2815,7 @@ void AwesomePlayer::onAudioTearDownEvent() {
        err = setDataSource_l(uri, &uriHeaders);
    }

    mFlags |= PREPARING;
    if ( err != OK ) {
        // This will force beingPrepareAsync_l() to notify
        // a MEDIA_ERROR to the client and abort the prepare