summaryrefslogtreecommitdiffstats
path: root/media/jni/soundpool
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2015-05-18 13:53:39 -0700
committerGlenn Kasten <gkasten@google.com>2015-05-18 13:54:40 -0700
commit14d226a2cd7b39e17a3f0bfdab79e645f7146f53 (patch)
tree4e7843e797f20199e9d87e35ea4ed16304df0d39 /media/jni/soundpool
parent9939961db9765f4e900955cf64ce1c3ceeb9362e (diff)
downloadframeworks_base-14d226a2cd7b39e17a3f0bfdab79e645f7146f53.zip
frameworks_base-14d226a2cd7b39e17a3f0bfdab79e645f7146f53.tar.gz
frameworks_base-14d226a2cd7b39e17a3f0bfdab79e645f7146f53.tar.bz2
Add comments to indicate code review was done for bugs
Bug: 20818955 Bug: 20890069 Change-Id: I243205b99b198eb1b5a1a027b27cbb7d5aaaa8db
Diffstat (limited to 'media/jni/soundpool')
-rw-r--r--media/jni/soundpool/SoundPool.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/media/jni/soundpool/SoundPool.cpp b/media/jni/soundpool/SoundPool.cpp
index 8038cdf..a705bcc 100644
--- a/media/jni/soundpool/SoundPool.cpp
+++ b/media/jni/soundpool/SoundPool.cpp
@@ -753,6 +753,7 @@ void SoundChannel::play(const sp<Sample>& sample, int nextChannelID, float leftV
status = newTrack->initCheck();
if (status != NO_ERROR) {
ALOGE("Error creating AudioTrack");
+ // newTrack goes out of scope, so reference count drops to zero
goto exit;
}
// From now on, AudioTrack callbacks received with previous toggle value will be ignored.