summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/Tracks.cpp
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2014-03-17 17:22:08 -0700
committerEric Laurent <elaurent@google.com>2014-03-17 18:31:43 -0700
commit164985121796cf214c7a83d32005d9b01125b558 (patch)
tree5e84c9a2511f94338b116962ef4eb7ba5903b708 /services/audioflinger/Tracks.cpp
parent8d6c292a0bed3d63b5b7297d09a604af6327c663 (diff)
downloadframeworks_av-164985121796cf214c7a83d32005d9b01125b558.zip
frameworks_av-164985121796cf214c7a83d32005d9b01125b558.tar.gz
frameworks_av-164985121796cf214c7a83d32005d9b01125b558.tar.bz2
AudioFlinger: Change track ready condition in STOPPING_1 state
Set FS_FILLED only if framesReady() > 0 Change-Id: Ibb1d2e988ff17fcf3a7ab61031a3f85df82f18d5
Diffstat (limited to 'services/audioflinger/Tracks.cpp')
-rw-r--r--services/audioflinger/Tracks.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/services/audioflinger/Tracks.cpp b/services/audioflinger/Tracks.cpp
index c90bae0..c5fa624 100644
--- a/services/audioflinger/Tracks.cpp
+++ b/services/audioflinger/Tracks.cpp
@@ -571,8 +571,10 @@ bool AudioFlinger::PlaybackThread::Track::isReady() const {
return true;
}
- if (isStopping() && framesReady() > 0) {
- mFillingUpStatus = FS_FILLED;
+ if (isStopping()) {
+ if (framesReady() > 0) {
+ mFillingUpStatus = FS_FILLED;
+ }
return true;
}