diff --git a/libs/audioflinger/A2dpAudioInterface.cpp b/libs/audioflinger/A2dpAudioInterface.cpp index 351815bdb..c07bbfe77 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()); }