Merge "Fix isssue 2548710: Native AudioTrack resources never freed."

This commit is contained in:
Jean-Baptiste Queru 2010-05-19 08:35:21 -07:00 committed by Android Code Review
commit ed02950ce1

View File

@ -1344,7 +1344,7 @@ uint32_t AudioFlinger::MixerThread::prepareTracks_l(const SortedVector< wp<Track
// for all its buffers to be filled before processing it
mAudioMixer->setActiveTrack(track->name());
if (cblk->framesReady() && (track->isReady() || track->isStopped()) &&
!track->isPaused())
!track->isPaused() && !track->isTerminated())
{
//LOGV("track %d u=%08x, s=%08x [OK] on thread %p", track->name(), cblk->user, cblk->server, this);