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

Commit 2face62c authored by Steve Kondik's avatar Steve Kondik
Browse files

nuplayer: Fix build

 * Fix call to canOffloadStream. Wrong patch version got merged.

Change-Id: I568b9182b70797a8545003880cb726fa5cd09a96
parent 6ffb2974
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -699,10 +699,10 @@ void NuPlayer::onMessageReceived(const sp<AMessage> &msg) {
            // Don't try to re-open audio sink if there's an existing decoder.
            if (mAudioSink != NULL && mAudioDecoder == NULL) {
                sp<MetaData> audioMeta = mSource->getFormatMeta(true /* audio */);
                sp<AMessage> videoFormat = mSource->getFormat(false /* audio */);
                sp<MetaData> videoMeta = mSource->getFormatMeta(false /* audio */);
                audio_stream_type_t streamType = mAudioSink->getAudioStreamType();
                bool canOffload = canOffloadStream(audioMeta, (videoFormat != NULL),
                         true /* is_streaming */, streamType);
                bool canOffload = canOffloadStream(audioMeta, (videoMeta != NULL),
                         videoMeta, true /* is_streaming */, streamType);
                if (canOffload) {
                    if (!mOffloadAudio) {
                        mRenderer->signalEnableOffloadAudio();