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>
Wed, 8 Jan 2014 21:54:53 +0000 (13:54 -0800)
Signal track ready if the track isStopping().

Bug: 12423190
Change-Id: Ie279995d5f90fa8211a20dfbeacc1cf9b921d0bf

services/audioflinger/Tracks.cpp

index 53196c8..a5b9ac5 100644 (file)
@@ -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;
     }