OSDN Git Service
(root)
/
android-x86
/
hardware-libhardware_legacy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5debe92
)
Close a newly opened direct output if its parameters are invalid
author
Jason Simmons
<jsimmons@google.com>
Wed, 31 Oct 2012 17:50:12 +0000
(10:50 -0700)
committer
Jason Simmons
<jsimmons@google.com>
Wed, 31 Oct 2012 17:50:12 +0000
(10:50 -0700)
Change-Id: I27ac015217480a854d25273ab9498949971b411a
audio/AudioPolicyManagerBase.cpp
patch
|
blob
|
history
diff --git
a/audio/AudioPolicyManagerBase.cpp
b/audio/AudioPolicyManagerBase.cpp
index
906c3fc
..
a082239
100644
(file)
--- 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);