Merge "audio policy: fix scanning of supported devices" into jb-mr1-dev

This commit is contained in:
Eric Laurent 2012-10-18 11:38:54 -07:00 committed by Android (Google) Code Review
commit 89ef58f4c0

View file

@ -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;
}