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

Commit 05d698d9 authored by Andy Hung's avatar Andy Hung Committed by android-build-merger
Browse files

Merge "NuPlayer: Use deep buffer AudioTrack for video playback" into oc-dev

am: 80158939

Change-Id: Ica687a11fa6d7e01fec158bee7df7024b7ff7492
parents 6d875c51 80158939
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -762,8 +762,7 @@ void NuPlayer::Decoder::handleOutputFormatChange(const sp<AMessage> &format) {
        int64_t durationUs;
        bool hasVideo = (mSource->getFormat(false /* audio */) != NULL);
        if (getAudioDeepBufferSetting() // override regardless of source duration
                || (!hasVideo
                        && mSource->getDuration(&durationUs) == OK
                || (mSource->getDuration(&durationUs) == OK
                        && durationUs > AUDIO_SINK_MIN_DEEP_BUFFER_DURATION_US)) {
            flags = AUDIO_OUTPUT_FLAG_DEEP_BUFFER;
        } else {