OSDN Git Service
(root)
/
android-x86
/
frameworks-native.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2239657
)
Fix A2dpAudioInterface getParameters.
author
Eric Laurent
<elaurent@google.com>
Wed, 25 Nov 2009 14:08:44 +0000
(06:08 -0800)
committer
Eric Laurent
<elaurent@google.com>
Wed, 25 Nov 2009 14:08:44 +0000
(06:08 -0800)
A2dpAudioInterface::getParameters() was prepending a ';' to the key value pair returned from underlying AudioHardwareInterface.
libs/audioflinger/A2dpAudioInterface.cpp
patch
|
blob
|
history
diff --git
a/libs/audioflinger/A2dpAudioInterface.cpp
b/libs/audioflinger/A2dpAudioInterface.cpp
index
351815b
..
c07bbfe
100644
(file)
--- a/
libs/audioflinger/A2dpAudioInterface.cpp
+++ b/
libs/audioflinger/A2dpAudioInterface.cpp
@@
-185,7
+185,9
@@
String8 A2dpAudioInterface::getParameters(const String8& keys)
String8 keyValuePairs = a2dpParam.toString();
if (param.size()) {
- keyValuePairs += ";";
+ if (keyValuePairs != "") {
+ keyValuePairs += ";";
+ }
keyValuePairs += mHardwareInterface->getParameters(param.toString());
}