Merge "Close a newly opened direct output if its parameters are invalid" into jb-mr1-aah-dev
This commit is contained in:
commit
7aab5b0f27
1 changed files with 1 additions and 0 deletions
|
@ -1672,6 +1672,7 @@ status_t AudioPolicyManagerBase::checkOutputsForDevice(audio_devices_t device,
|
|||
((profile->mFormats[0] == 0) &&
|
||||
(profile->mChannelMasks.size() < 2))) {
|
||||
ALOGW("checkOutputsForDevice() direct output missing param");
|
||||
mpClientInterface->closeOutput(output);
|
||||
output = 0;
|
||||
} else {
|
||||
addOutput(output, desc);
|
||||
|
|
Loading…
Reference in a new issue