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

Commit 19b93ac3 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

am: 05d698d9

Change-Id: Idb4339477c1656a87f76a7949b077e0714549e68
parents 857c27aa 05d698d9
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 {