summaryrefslogtreecommitdiffstats
path: root/media/libstagefright
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2011-01-26 10:41:38 -0800
committerAndreas Huber <andih@google.com>2011-01-26 10:41:38 -0800
commit4aeec2da39fce4de9b07b694d59fd308ffb3d491 (patch)
tree62369adbe8f8db83992cb40c3371d4fa7c547e6e /media/libstagefright
parentff3b3ade7fa1da60d391d1a746cdc0868c24f4bf (diff)
downloadframeworks_base-4aeec2da39fce4de9b07b694d59fd308ffb3d491.zip
frameworks_base-4aeec2da39fce4de9b07b694d59fd308ffb3d491.tar.gz
frameworks_base-4aeec2da39fce4de9b07b694d59fd308ffb3d491.tar.bz2
Instead of not feeding the AudioTrack any data after EOS, play silence instead.
Change-Id: I9aa797cf5bb58eefed51d732f4e5d09450551158 related-to-bug: 3347428
Diffstat (limited to 'media/libstagefright')
-rw-r--r--media/libstagefright/AudioPlayer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/media/libstagefright/AudioPlayer.cpp b/media/libstagefright/AudioPlayer.cpp
index 5ff934d..e7c0299 100644
--- a/media/libstagefright/AudioPlayer.cpp
+++ b/media/libstagefright/AudioPlayer.cpp
@@ -286,7 +286,9 @@ size_t AudioPlayer::fillBuffer(void *data, size_t size) {
}
if (mReachedEOS) {
- return 0;
+ memset(data, 0, size);
+
+ return size;
}
size_t size_done = 0;