[mediacontroller] Fix sendCommand callbacks. 43/205843/1
authorMichal Michalski <m.michalski2@partner.samsung.com>
Thu, 9 May 2019 15:04:05 +0000 (17:04 +0200)
committerMichal Michalski <m.michalski2@partner.samsung.com>
Thu, 9 May 2019 15:04:05 +0000 (17:04 +0200)
sendCommand callbacks were not triggered due to problem
with requestId. This commit fixes this bug.

[Verification] MC TCT 100% pass.

Change-Id: Ibb4fbe146dcb8c20d623ac27924377d4097bb67d
Signed-off-by: Michal Michalski <m.michalski2@partner.samsung.com>
src/mediacontroller/mediacontroller_instance.cc

index 1e3bb8a..cb03b72 100644 (file)
@@ -867,6 +867,7 @@ void MediaControllerInstance::MediaControllerServerInfoSendCommand(const picojso
 
   if (result) {
     ReportSuccess(out);
+    out["requestId"] = picojson::value(std::string(request_id));
   } else {
     LogAndReportError(result, &out, ("Failed to send command."));
   }