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

Commit db207461 authored by Andreas Huber's avatar Andreas Huber
Browse files

Revert "Make AwesomePlayer's reset process more verbose to track down ANRs (again)"

This reverts commit aac2e9e1566a3bb0ef811ebd3a56b538324c95c1.

Change-Id: Ic84dfa829981fdc1a1330ccfe6b9dccf64a80719
related-to-bug: 3392386
parent 783e5cd8
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
@@ -378,14 +378,11 @@ status_t AwesomePlayer::setDataSource_l(const sp<MediaExtractor> &extractor) {
}

void AwesomePlayer::reset() {
    LOGI("reset");

    Mutex::Autolock autoLock(mLock);
    reset_l();
}

void AwesomePlayer::reset_l() {
    LOGI("reset_l");
    mDisplayWidth = 0;
    mDisplayHeight = 0;

@@ -411,10 +408,6 @@ void AwesomePlayer::reset_l() {
        }
    }

    if (mFlags & PREPARING) {
        LOGI("waiting until preparation is completes.");
    }

    while (mFlags & PREPARING) {
        mPreparedCondition.wait(mLock);
    }
@@ -438,8 +431,6 @@ void AwesomePlayer::reset_l() {
    }
    mAudioSource.clear();

    LOGI("audio source cleared");

    mTimeSource = NULL;

    delete mAudioPlayer;
@@ -480,8 +471,6 @@ void AwesomePlayer::reset_l() {
        IPCThreadState::self()->flushCommands();
    }

    LOGI("video source cleared");

    mDurationUs = -1;
    mFlags = 0;
    mExtractorFlags = 0;
@@ -498,8 +487,6 @@ void AwesomePlayer::reset_l() {
    mFileSource.clear();

    mBitrate = -1;

    LOGI("reset_l completed");
}

void AwesomePlayer::notifyListener_l(int msg, int ext1, int ext2) {