summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libs/audioflinger/A2dpAudioInterface.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/audioflinger/A2dpAudioInterface.cpp b/libs/audioflinger/A2dpAudioInterface.cpp
index 351815b..c07bbfe 100644
--- 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());
}