From 7542b0aa2149eac23976ad5da2b3602aa06dd986 Mon Sep 17 00:00:00 2001 From: christian mueller Date: Wed, 2 May 2012 14:42:55 +0200 Subject: * [GAM-70] fix wrong type on database interface for source sound properties Signed-off-by: christian mueller --- AudioManagerDaemon/src/CAmControlReceiver.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'AudioManagerDaemon/src/CAmControlReceiver.cpp') diff --git a/AudioManagerDaemon/src/CAmControlReceiver.cpp b/AudioManagerDaemon/src/CAmControlReceiver.cpp index e7cee4b..23ae544 100644 --- a/AudioManagerDaemon/src/CAmControlReceiver.cpp +++ b/AudioManagerDaemon/src/CAmControlReceiver.cpp @@ -130,7 +130,7 @@ am_Error_e CAmControlReceiver::setSinkSoundProperty(am_Handle_s & handle, const { logInfo("CAmControlReceiver::setSinkSoundProperty got called, sinkID=", sinkID, "soundProperty.Type=", soundProperty.type, "soundProperty.value=", soundProperty.value); - uint16_t value; + int16_t value; if (mDatabaseHandler->getSinkSoundPropertyValue(sinkID, soundProperty.type, value) != E_OK) return (E_UNKNOWN); if (value == soundProperty.value) @@ -142,7 +142,7 @@ am_Error_e CAmControlReceiver::setSinkSoundProperties(am_Handle_s & handle, cons { logInfo("CAmControlReceiver::setSinkSoundProperties got called, sinkID=", sinkID); - uint16_t value; + int16_t value; bool noChange = true; std::vector::const_iterator it = listSoundProperties.begin(); for (; it != listSoundProperties.end(); ++it) @@ -161,7 +161,7 @@ am_Error_e CAmControlReceiver::setSourceSoundProperty(am_Handle_s & handle, cons { logInfo("CAmControlReceiver::setSourceSoundProperty got called, sourceID=", sourceID, "soundProperty.Type=", soundProperty.type, "soundProperty.value=", soundProperty.value); - uint16_t value; + int16_t value; if (mDatabaseHandler->getSourceSoundPropertyValue(sourceID, soundProperty.type, value) != E_OK) return (E_UNKNOWN); if (value == soundProperty.value) @@ -173,7 +173,7 @@ am_Error_e CAmControlReceiver::setSourceSoundProperties(am_Handle_s & handle, co { logInfo("CAmControlReceiver::setSourceSoundProperties got called, sourceID=", sourceID); - uint16_t value; + int16_t value; bool noChange = true; std::vector::const_iterator it = listSoundProperties.begin(); for (; it != listSoundProperties.end(); ++it) -- cgit v1.2.1