summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/Tracks.cpp
diff options
context:
space:
mode:
authorHaynes Mathew George <hgeorge@codeaurora.org>2013-12-27 16:09:28 -0800
committerEric Laurent <elaurent@google.com>2014-01-08 13:54:53 -0800
commit0bcfa88149e2404b34d13c622e3921e1b846cdf8 (patch)
tree67d09151548315f58bda189ed8a6cc0ab75daff1 /services/audioflinger/Tracks.cpp
parent3f65a84030c2ae95d72a9458ebfbb6d14e96daf5 (diff)
downloadframeworks_av-0bcfa88149e2404b34d13c622e3921e1b846cdf8.zip
frameworks_av-0bcfa88149e2404b34d13c622e3921e1b846cdf8.tar.gz
frameworks_av-0bcfa88149e2404b34d13c622e3921e1b846cdf8.tar.bz2
audioflinger: update track ready condition
Signal track ready if the track isStopping(). Bug: 12423190 Change-Id: Ie279995d5f90fa8211a20dfbeacc1cf9b921d0bf
Diffstat (limited to 'services/audioflinger/Tracks.cpp')
-rw-r--r--services/audioflinger/Tracks.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/audioflinger/Tracks.cpp b/services/audioflinger/Tracks.cpp
index 53196c8..a5b9ac5 100644
--- a/services/audioflinger/Tracks.cpp
+++ b/services/audioflinger/Tracks.cpp
@@ -564,7 +564,7 @@ size_t AudioFlinger::PlaybackThread::Track::framesReleased() const
// Don't call for fast tracks; the framesReady() could result in priority inversion
bool AudioFlinger::PlaybackThread::Track::isReady() const {
- if (mFillingUpStatus != FS_FILLING || isStopped() || isPausing()) {
+ if (mFillingUpStatus != FS_FILLING || isStopped() || isPausing() || isStopping()) {
return true;
}