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

Commit 3542d185 authored by Eric Laurent's avatar Eric Laurent Committed by Android (Google) Code Review
Browse files

Merge "NuPlayerDecoder: report error in case of audio sink open error."

parents 0b1b9fe7 15ce09dd
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -635,8 +635,11 @@ void NuPlayer::Decoder::handleOutputFormatChange(const sp<AMessage> &format) {
            flags = AUDIO_OUTPUT_FLAG_NONE;
        }

        mRenderer->openAudioSink(
        status_t err = mRenderer->openAudioSink(
                format, false /* offloadOnly */, hasVideo, flags, NULL /* isOffloaed */);
        if (err != OK) {
            handleError(err);
        }
    }
}