aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xbmc/interfaces/json-rpc/PlayerOperations.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/xbmc/interfaces/json-rpc/PlayerOperations.cpp b/xbmc/interfaces/json-rpc/PlayerOperations.cpp
index c3d9a57c06..901e56252c 100644
--- a/xbmc/interfaces/json-rpc/PlayerOperations.cpp
+++ b/xbmc/interfaces/json-rpc/PlayerOperations.cpp
@@ -1361,10 +1361,11 @@ JSONRPC_STATUS CPlayerOperations::GetPropertyValue(PlayerType player, const CStd
value.Empty();
g_application.m_pPlayer->GetAudioStreamLanguage(index, value);
result["language"] = value;
+
+ result["codec"] = g_application.m_pPlayer->GetAudioCodecName();
+ result["bitrate"] = g_application.m_pPlayer->GetAudioBitrate();
+ result["channels"] = g_application.m_pPlayer->GetChannels();
}
- result["codec"] = g_application.m_pPlayer->GetAudioCodecName();
- result["bitrate"] = g_application.m_pPlayer->GetAudioBitrate();
- result["channels"] = g_application.m_pPlayer->GetChannels();
}
else
result = CVariant(CVariant::VariantTypeNull);