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

Commit cd0e4275 authored by Dongwon Kang's avatar Dongwon Kang
Browse files

MediaPlayer2: replace canOffloadStream with public API.

This was missed in the previous change, I85c689b029a821

Test: build
Bug: 112549970
Change-Id: Id9c30f5a1fc759c635662e5efd0b0d824182f502
parent 08feec53
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);