OSDN Git Service

audioflinger: update track ready condition
authorHaynes Mathew George <hgeorge@codeaurora.org>
Sat, 28 Dec 2013 00:09:28 +0000 (16:09 -0800)
committerEric Laurent <elaurent@google.com>
Tue, 4 Mar 2014 23:58:25 +0000 (15:58 -0800)
Signal track ready if the track isStopping().

Bug: 12423190
Change-Id: I95e14905df10ebf301e398263478c8ca25d7e2ce

services/audioflinger/Tracks.cpp

index af04ce7..d6b9908 100644 (file)
@@ -551,7 +551,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;
     }