Loading media/libmediaplayerservice/nuplayer/NuPlayerRenderer.cpp +7 −4 Original line number Diff line number Diff line Loading @@ -638,10 +638,13 @@ bool NuPlayer::Renderer::onDrainAudioQueue() { mAudioQueue.erase(mAudioQueue.begin()); entry = NULL; // Need to stop the track here, because that will play out the last if (mAudioSink->needsTrailingPadding()) { // If we're not in gapless playback (i.e. through setNextPlayer), we // need to stop the track here, because that will play out the last // little bit at the end of the file. Otherwise short files won't play. mAudioSink->stop(); mNumFramesWritten = 0; } return false; } Loading Loading
media/libmediaplayerservice/nuplayer/NuPlayerRenderer.cpp +7 −4 Original line number Diff line number Diff line Loading @@ -638,10 +638,13 @@ bool NuPlayer::Renderer::onDrainAudioQueue() { mAudioQueue.erase(mAudioQueue.begin()); entry = NULL; // Need to stop the track here, because that will play out the last if (mAudioSink->needsTrailingPadding()) { // If we're not in gapless playback (i.e. through setNextPlayer), we // need to stop the track here, because that will play out the last // little bit at the end of the file. Otherwise short files won't play. mAudioSink->stop(); mNumFramesWritten = 0; } return false; } Loading