diff options
author | Eric Laurent <elaurent@google.com> | 2012-10-18 11:38:54 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-10-18 11:38:54 -0700 |
commit | 89ef58f4c0e4920d8f18112a31a4c80c766a2afa (patch) | |
tree | 9dbc8c43072efb94904f8bdc0adee6b50f5c6463 | |
parent | 672e9ace42a3f7d4f93460efc79ebd444786a5eb (diff) | |
parent | fd8cecbee6843b444d56a1db40af76027e2b19f1 (diff) | |
download | hardware_libhardware_legacy-89ef58f4c0e4920d8f18112a31a4c80c766a2afa.zip hardware_libhardware_legacy-89ef58f4c0e4920d8f18112a31a4c80c766a2afa.tar.gz hardware_libhardware_legacy-89ef58f4c0e4920d8f18112a31a4c80c766a2afa.tar.bz2 |
Merge "audio policy: fix scanning of supported devices" into jb-mr1-dev
-rw-r--r-- | audio/AudioPolicyManagerBase.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/AudioPolicyManagerBase.cpp b/audio/AudioPolicyManagerBase.cpp index 98453d0..35dd219 100644 --- a/audio/AudioPolicyManagerBase.cpp +++ b/audio/AudioPolicyManagerBase.cpp @@ -1611,13 +1611,13 @@ status_t AudioPolicyManagerBase::checkOutputsForDevice(audio_devices_t device, // nothing to do if one output is already opened for this profile size_t j; - for (j = 0; j < outputs.size(); j++) { + for (j = 0; j < mOutputs.size(); j++) { desc = mOutputs.valueAt(j); if (!desc->isDuplicated() && desc->mProfile == profile) { break; } } - if (j != outputs.size()) { + if (j != mOutputs.size()) { continue; } |