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

Commit 9a4f4c23 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "MediaPlayer2: replace canOffloadStream with public API."

parents 830b9aa9 cd0e4275
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1994,7 +1994,7 @@ void NuPlayer2::determineAudioModeChange(const sp<AMessage> &audioFormat) {
    sp<AMessage> videoFormat = mCurrentSourceInfo.mSource->getFormat(false /* audio */);
    audio_stream_type_t streamType = mAudioSink->getAudioStreamType();
    const bool hasVideo = (videoFormat != NULL);
    bool canOffload = canOffloadStream(
    bool canOffload = JMediaPlayer2Utils::isOffloadedAudioPlaybackSupported(
            audioMeta, hasVideo, mCurrentSourceInfo.mSource->isStreaming(), streamType)
                    && (mPlaybackSettings.mSpeed == 1.f && mPlaybackSettings.mPitch == 1.f);