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

Commit ddd455b1 authored by Wei Jia's avatar Wei Jia Committed by android-build-merger
Browse files

Merge "NuPlayer: add more logging to debug offload teardown." into pi-dev

am: 26472b21

Change-Id: I93624c18b474407c684578a2db7a86f9baca7bfe
parents 05c20b9f 26472b21
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1289,7 +1289,8 @@ void NuPlayer::onMessageReceived(const sp<AMessage> &msg) {
                ALOGV("Tear down audio with reason %d.", reason);
                if (reason == Renderer::kDueToTimeout && !(mPaused && mOffloadAudio)) {
                    // TimeoutWhenPaused is only for offload mode.
                    ALOGW("Receive a stale message for teardown.");
                    ALOGW("Received a stale message for teardown, mPaused(%d), mOffloadAudio(%d)",
                          mPaused, mOffloadAudio);
                    break;
                }
                int64_t positionUs;
@@ -1789,6 +1790,8 @@ void NuPlayer::closeAudioSink() {

void NuPlayer::restartAudio(
        int64_t currentPositionUs, bool forceNonOffload, bool needsToCreateAudioDecoder) {
    ALOGD("restartAudio timeUs(%lld), dontOffload(%d), createDecoder(%d)",
          (long long)currentPositionUs, forceNonOffload, needsToCreateAudioDecoder);
    if (mAudioDecoder != NULL) {
        mAudioDecoder->pause();
        mAudioDecoder.clear();