diff options
author | Marco Nelissen <marcone@google.com> | 2014-11-10 22:29:56 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-11-10 22:29:56 +0000 |
commit | 48cb6d7c840e695769405b0d33fd2b85479ec717 (patch) | |
tree | ed5513fbe446bad4b7438f7f4c31feac9bd8850f /media | |
parent | 21efaad13f13e390f585cea4371d399997f8d1a6 (diff) | |
parent | 15ce5f35187659ad757ee2ea6f70dcef5010c2c2 (diff) | |
download | frameworks_av-48cb6d7c840e695769405b0d33fd2b85479ec717.zip frameworks_av-48cb6d7c840e695769405b0d33fd2b85479ec717.tar.gz frameworks_av-48cb6d7c840e695769405b0d33fd2b85479ec717.tar.bz2 |
Merge "Fix short sound playback" into lmp-mr1-dev
Diffstat (limited to 'media')
-rw-r--r-- | media/libmediaplayerservice/nuplayer/NuPlayerRenderer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/media/libmediaplayerservice/nuplayer/NuPlayerRenderer.cpp b/media/libmediaplayerservice/nuplayer/NuPlayerRenderer.cpp index 5d9001c..d9e3ee8 100644 --- a/media/libmediaplayerservice/nuplayer/NuPlayerRenderer.cpp +++ b/media/libmediaplayerservice/nuplayer/NuPlayerRenderer.cpp @@ -629,6 +629,10 @@ bool NuPlayer::Renderer::onDrainAudioQueue() { mAudioQueue.erase(mAudioQueue.begin()); entry = NULL; + // 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; } |