Loading media/libmediaplayerservice/nuplayer/NuPlayer.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -170,7 +170,7 @@ NuPlayer::NuPlayer() mOffloadAudio(false), mOffloadDecodedPCM(false), mSwitchingFromPcmOffload(false), mIsStreaming(true), mIsStreaming(false), mAudioDecoderGeneration(0), mVideoDecoderGeneration(0), mRendererGeneration(0), Loading media/libmediaplayerservice/nuplayer/NuPlayerDecoder.cpp +5 −1 Original line number Diff line number Diff line Loading @@ -464,8 +464,12 @@ bool NuPlayer::Decoder::handleAnOutputBuffer() { flags = AUDIO_OUTPUT_FLAG_NONE; } uint32_t isStreaming = 0; sp<AMessage> notify = mNotify->dup(); notify->findInt32("isStreaming", (int32_t *)&isStreaming); res = mRenderer->openAudioSink( format, false /* offloadOnly */, hasVideo, flags, NULL /* isOffloaded */); format, false /* offloadOnly */, hasVideo, flags, isStreaming, NULL /* isOffloaded */); if (res != OK) { ALOGE("Failed to open AudioSink on format change for %s (err=%d)", mComponentName.c_str(), res); Loading media/libmediaplayerservice/nuplayer/NuPlayerDecoderPassThrough.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -74,12 +74,15 @@ void NuPlayer::DecoderPassThrough::onConfigure(const sp<AMessage> &format) { onRequestInputBuffers(); uint32_t isStreaming = 0; format->findInt32("isStreaming", (int32_t *)&isStreaming); // The audio sink is already opened before the PassThrough decoder is created. // Opening again might be relevant if decoder is instantiated after shutdown and // format is different. status_t err = mRenderer->openAudioSink( format, true /* offloadOnly */, false /* hasVideo */, AUDIO_OUTPUT_FLAG_NONE /* flags */, NULL /* isOffloaded */); AUDIO_OUTPUT_FLAG_NONE /* flags */, isStreaming, NULL /* isOffloaded */); if (err != OK) { handleError(err); } Loading Loading
media/libmediaplayerservice/nuplayer/NuPlayer.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -170,7 +170,7 @@ NuPlayer::NuPlayer() mOffloadAudio(false), mOffloadDecodedPCM(false), mSwitchingFromPcmOffload(false), mIsStreaming(true), mIsStreaming(false), mAudioDecoderGeneration(0), mVideoDecoderGeneration(0), mRendererGeneration(0), Loading
media/libmediaplayerservice/nuplayer/NuPlayerDecoder.cpp +5 −1 Original line number Diff line number Diff line Loading @@ -464,8 +464,12 @@ bool NuPlayer::Decoder::handleAnOutputBuffer() { flags = AUDIO_OUTPUT_FLAG_NONE; } uint32_t isStreaming = 0; sp<AMessage> notify = mNotify->dup(); notify->findInt32("isStreaming", (int32_t *)&isStreaming); res = mRenderer->openAudioSink( format, false /* offloadOnly */, hasVideo, flags, NULL /* isOffloaded */); format, false /* offloadOnly */, hasVideo, flags, isStreaming, NULL /* isOffloaded */); if (res != OK) { ALOGE("Failed to open AudioSink on format change for %s (err=%d)", mComponentName.c_str(), res); Loading
media/libmediaplayerservice/nuplayer/NuPlayerDecoderPassThrough.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -74,12 +74,15 @@ void NuPlayer::DecoderPassThrough::onConfigure(const sp<AMessage> &format) { onRequestInputBuffers(); uint32_t isStreaming = 0; format->findInt32("isStreaming", (int32_t *)&isStreaming); // The audio sink is already opened before the PassThrough decoder is created. // Opening again might be relevant if decoder is instantiated after shutdown and // format is different. status_t err = mRenderer->openAudioSink( format, true /* offloadOnly */, false /* hasVideo */, AUDIO_OUTPUT_FLAG_NONE /* flags */, NULL /* isOffloaded */); AUDIO_OUTPUT_FLAG_NONE /* flags */, isStreaming, NULL /* isOffloaded */); if (err != OK) { handleError(err); } Loading