diff options
author | Eric Laurent <elaurent@google.com> | 2010-04-09 06:11:48 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2010-04-09 06:11:48 -0700 |
commit | 380558bc5d61ab3dd73fc58ba4c70556062aa438 (patch) | |
tree | 2e8e46d4ceaa0ad540ecb7065bff7c003b85a64a /libs | |
parent | 78158db51029e7dbe160e60af0deb7594bec051d (diff) | |
download | frameworks_base-380558bc5d61ab3dd73fc58ba4c70556062aa438.zip frameworks_base-380558bc5d61ab3dd73fc58ba4c70556062aa438.tar.gz frameworks_base-380558bc5d61ab3dd73fc58ba4c70556062aa438.tar.bz2 |
Additional fix for isssue 2548710: Native AudioTrack resources never freed.
This changes fixes the issue for the direct output thread that was not
addressed by commit 71f37cd8a175ee00635cb91506d6810fd02b5b51.
Change-Id: I1bbe26be5f444415dd97270e49257650f5d2858f
Diffstat (limited to 'libs')
-rw-r--r-- | libs/audioflinger/AudioFlinger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/audioflinger/AudioFlinger.cpp b/libs/audioflinger/AudioFlinger.cpp index 7166c89..2414e8d 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); |