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

Commit bdd467ed authored by Chong Zhang's avatar Chong Zhang Committed by Android (Google) Code Review
Browse files

Merge "Set PREPARING flag after setDataSource_l()" into klp-dev

parents 45e4eb05 22f03209
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