summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2014-11-10 22:29:56 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-11-10 22:29:56 +0000
commit48cb6d7c840e695769405b0d33fd2b85479ec717 (patch)
treeed5513fbe446bad4b7438f7f4c31feac9bd8850f /media
parent21efaad13f13e390f585cea4371d399997f8d1a6 (diff)
parent15ce5f35187659ad757ee2ea6f70dcef5010c2c2 (diff)
downloadframeworks_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.cpp4
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;
}