Skip to content
This repository
Browse code

jsonrpc: fix return value of "volume" property in Application.GetProp…

…erties
  • Loading branch information...
commit 2b458e08378553ff986fe82c5f70059367572c53 1 parent 40000ac
Sascha Montellese authored May 03, 2013
2  xbmc/interfaces/json-rpc/ApplicationOperations.cpp
@@ -109,7 +109,7 @@ JSONRPC_STATUS CApplicationOperations::Quit(const CStdString &method, ITransport
109 109
 JSONRPC_STATUS CApplicationOperations::GetPropertyValue(const CStdString &property, CVariant &result)
110 110
 {
111 111
   if (property.Equals("volume"))
112  
-    result = g_application.GetVolume();
  112
+    result = (int)g_application.GetVolume();
113 113
   else if (property.Equals("muted"))
114 114
     result = g_application.IsMuted();
115 115
   else if (property.Equals("name"))
2  xbmc/interfaces/json-rpc/ServiceDescription.h
@@ -22,7 +22,7 @@
22 22
 namespace JSONRPC
23 23
 {
24 24
   const char* const JSONRPC_SERVICE_ID          = "http://www.xbmc.org/jsonrpc/ServiceDescription.json";
25  
-  const char* const JSONRPC_SERVICE_VERSION     = "6.5.0";
  25
+  const char* const JSONRPC_SERVICE_VERSION     = "6.5.1";
26 26
   const char* const JSONRPC_SERVICE_DESCRIPTION = "JSON-RPC API of XBMC";
27 27
 
28 28
   const char* const JSONRPC_SERVICE_TYPES[] = {  

0 notes on commit 2b458e0

Please sign in to comment.
Something went wrong with that request. Please try again.