diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-31 21:34:25 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-31 21:34:25 -0700 |
commit | bdf653f3a4fa8f7c91891e080e8386f490964a48 (patch) | |
tree | 765fcdcdb0b79ac79347e1b3694486350134b8fa /libs | |
parent | cd3c19ae1542707bdb859a54b925e4b9c5acaef1 (diff) | |
parent | c828f6ae9775149fc579827c3841a63b99fbd2a9 (diff) | |
download | frameworks_native-bdf653f3a4fa8f7c91891e080e8386f490964a48.zip frameworks_native-bdf653f3a4fa8f7c91891e080e8386f490964a48.tar.gz frameworks_native-bdf653f3a4fa8f7c91891e080e8386f490964a48.tar.bz2 |
Merge commit 'goog/readonly-p4-master'
Diffstat (limited to 'libs')
-rw-r--r-- | libs/audioflinger/AudioFlinger.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/libs/audioflinger/AudioFlinger.cpp b/libs/audioflinger/AudioFlinger.cpp index 1069362..43df7dd 100644 --- a/libs/audioflinger/AudioFlinger.cpp +++ b/libs/audioflinger/AudioFlinger.cpp @@ -958,13 +958,10 @@ status_t AudioFlinger::MixerThread::dumpTracks(int fd, const Vector<String16>& a result.append(buffer); result.append(" Name Clien Typ Fmt Chn Buf S M F SRate LeftV RighV Serv User\n"); for (size_t i = 0; i < mTracks.size(); ++i) { - wp<Track> wTrack = mTracks[i]; - if (wTrack != 0) { - sp<Track> track = wTrack.promote(); - if (track != 0) { - track->dump(buffer, SIZE); - result.append(buffer); - } + sp<Track> track = mTracks[i]; + if (track != 0) { + track->dump(buffer, SIZE); + result.append(buffer); } } @@ -972,7 +969,7 @@ status_t AudioFlinger::MixerThread::dumpTracks(int fd, const Vector<String16>& a result.append(buffer); result.append(" Name Clien Typ Fmt Chn Buf S M F SRate LeftV RighV Serv User\n"); for (size_t i = 0; i < mActiveTracks.size(); ++i) { - wp<Track> wTrack = mTracks[i]; + wp<Track> wTrack = mActiveTracks[i]; if (wTrack != 0) { sp<Track> track = wTrack.promote(); if (track != 0) { |