From 760971d0976e6a6cccb87e06b55e98ed9b50719c Mon Sep 17 00:00:00 2001 From: Eric Laurent Date: Wed, 25 Nov 2009 06:08:44 -0800 Subject: [PATCH] Fix A2dpAudioInterface getParameters. A2dpAudioInterface::getParameters() was prepending a ';' to the key value pair returned from underlying AudioHardwareInterface. --- libs/audioflinger/A2dpAudioInterface.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()); }