am 090c60bb: Merge change I73b60354 into eclair

Merge commit '090c60bb9d6608df4a8d753fc91974fe2c49c262' into eclair-mr2

* commit '090c60bb9d6608df4a8d753fc91974fe2c49c262':
  AudioFlinger: delete Track object when createTrack() fails due to lack of tracks in AudioMixer.
This commit is contained in:
Eric Laurent
2009-11-09 16:15:15 -08:00
committed by Android Git Automerger

View File

@ -1018,7 +1018,7 @@ sp<AudioFlinger::PlaybackThread::Track> AudioFlinger::PlaybackThread::createTra
Mutex::Autolock _l(mLock); Mutex::Autolock _l(mLock);
track = new Track(this, client, streamType, sampleRate, format, track = new Track(this, client, streamType, sampleRate, format,
channelCount, frameCount, sharedBuffer); channelCount, frameCount, sharedBuffer);
if (track->getCblk() == NULL) { if (track->getCblk() == NULL || track->name() < 0) {
lStatus = NO_MEMORY; lStatus = NO_MEMORY;
goto Exit; goto Exit;
} }