|
a/src/renderctl.cxx |
|
b/src/renderctl.cxx |
|
... |
|
... |
81 |
// </InstanceID>
|
81 |
// </InstanceID>
|
82 |
// </Event>
|
82 |
// </Event>
|
83 |
|
83 |
|
84 |
bool UpMpdRenderCtl::rdstateMToU(unordered_map<string, string>& status)
|
84 |
bool UpMpdRenderCtl::rdstateMToU(unordered_map<string, string>& status)
|
85 |
{
|
85 |
{
|
86 |
const MpdStatus &mpds = m_dev->getMpdStatus();
|
86 |
const MpdStatus &mpds = m_dev->getMpdStatusNoUpdate();
|
87 |
|
87 |
|
88 |
int volume = m_desiredvolume >= 0 ? m_desiredvolume : mpds.volume;
|
88 |
int volume = m_desiredvolume >= 0 ? m_desiredvolume : mpds.volume;
|
89 |
if (volume < 0)
|
89 |
if (volume < 0)
|
90 |
volume = 0;
|
90 |
volume = 0;
|
91 |
status["Volume"] = SoapHelp::i2s(volume);
|
91 |
status["Volume"] = SoapHelp::i2s(volume);
|