summaryrefslogtreecommitdiff
path: root/libs/audioflinger/AudioFlinger.cpp
diff options
context:
space:
mode:
author Eric Laurent <elaurent@google.com> 2010-04-09 08:48:32 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2010-04-09 08:48:32 -0700
commit376f728b35e3f1a6969b346fc0ee60724ebc22c2 (patch)
treeee6dbe548d447b7cf337af1fd81161933a664a03 /libs/audioflinger/AudioFlinger.cpp
parent248281006b26dcce232f6219bf8cc6fe3230de51 (diff)
parent775fa3cd32ffbb1c27011388287c5bc2b968e3bb (diff)
Merge "Additional fix for isssue 2548710: Native AudioTrack resources never freed." into froyo
Diffstat (limited to 'libs/audioflinger/AudioFlinger.cpp')
-rw-r--r--libs/audioflinger/AudioFlinger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/audioflinger/AudioFlinger.cpp b/libs/audioflinger/AudioFlinger.cpp
index 7166c89700..2414e8dc5e 100644
--- a/libs/audioflinger/AudioFlinger.cpp
+++ b/libs/audioflinger/AudioFlinger.cpp
@@ -1867,7 +1867,7 @@ bool AudioFlinger::DirectOutputThread::threadLoop()
// The first time a track is added we wait
// for all its buffers to be filled before processing it
if (cblk->framesReady() && (track->isReady() || track->isStopped()) &&
- !track->isPaused())
+ !track->isPaused() && !track->isTerminated())
{
//LOGV("track %d u=%08x, s=%08x [OK]", track->name(), cblk->user, cblk->server);