diff options
author | Jason Simmons <jsimmons@google.com> | 2012-10-31 10:50:12 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2012-11-08 08:48:34 -0800 |
commit | e912bfd79880ea5faac0fbcdb4e696125e151e18 (patch) | |
tree | b9803a98d67bd4c9160ff3ece52225bdc84d9623 | |
parent | 745e7fd4e09db2b47371338ee54c54255e286473 (diff) | |
download | hardware_libhardware_legacy-e912bfd79880ea5faac0fbcdb4e696125e151e18.zip hardware_libhardware_legacy-e912bfd79880ea5faac0fbcdb4e696125e151e18.tar.gz hardware_libhardware_legacy-e912bfd79880ea5faac0fbcdb4e696125e151e18.tar.bz2 |
audio policy: direct output fix - DO NOT MERGE
merge "Close a newly opened direct output if its parameters are invalid"
from master
Change-Id: I27ac015217480a854d25273ab9498949971b411a
-rw-r--r-- | audio/AudioPolicyManagerBase.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/audio/AudioPolicyManagerBase.cpp b/audio/AudioPolicyManagerBase.cpp index b4f4778..5d87399 100644 --- a/audio/AudioPolicyManagerBase.cpp +++ b/audio/AudioPolicyManagerBase.cpp @@ -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); |