|
a/upmpd/ohtime.cxx |
|
b/upmpd/ohtime.cxx |
|
... |
|
... |
50 |
}
|
50 |
}
|
51 |
|
51 |
|
52 |
void OHTime::getdata(string& trackcount, string &duration,
|
52 |
void OHTime::getdata(string& trackcount, string &duration,
|
53 |
string& seconds)
|
53 |
string& seconds)
|
54 |
{
|
54 |
{
|
|
|
55 |
// We're relying on AVTransport to have updated the status for us
|
55 |
const MpdStatus &mpds = m_dev->getMpdStatus();
|
56 |
const MpdStatus& mpds = m_dev->getMpdStatusNoUpdate();
|
56 |
|
57 |
|
57 |
trackcount = SoapArgs::i2s(mpds.trackcounter);
|
58 |
trackcount = SoapArgs::i2s(mpds.trackcounter);
|
58 |
|
59 |
|
59 |
bool is_song = (mpds.state == MpdStatus::MPDS_PLAY) ||
|
60 |
bool is_song = (mpds.state == MpdStatus::MPDS_PLAY) ||
|
60 |
(mpds.state == MpdStatus::MPDS_PAUSE);
|
61 |
(mpds.state == MpdStatus::MPDS_PAUSE);
|