|
a/src/ohplaylist.cxx |
|
b/src/ohplaylist.cxx |
|
... |
|
... |
93 |
bind(&OHPlaylist::idArray, this, _1, _2));
|
93 |
bind(&OHPlaylist::idArray, this, _1, _2));
|
94 |
dev->addActionMapping(this, "IdArrayChanged",
|
94 |
dev->addActionMapping(this, "IdArrayChanged",
|
95 |
bind(&OHPlaylist::idArrayChanged, this, _1, _2));
|
95 |
bind(&OHPlaylist::idArrayChanged, this, _1, _2));
|
96 |
dev->addActionMapping(this, "ProtocolInfo",
|
96 |
dev->addActionMapping(this, "ProtocolInfo",
|
97 |
bind(&OHPlaylist::protocolInfo, this, _1, _2));
|
97 |
bind(&OHPlaylist::protocolInfo, this, _1, _2));
|
98 |
dev->m_mpdcli->consume(false);
|
|
|
99 |
|
98 |
|
100 |
if ((dev->m_options & UpMpd::upmpdOhMetaPersist)) {
|
99 |
if ((dev->m_options & UpMpd::upmpdOhMetaPersist)) {
|
101 |
dmcacheSetOpts(cssleep);
|
100 |
dmcacheSetOpts(cssleep);
|
102 |
if (!dmcacheRestore(dev->getMetaCacheFn(), m_metacache)) {
|
101 |
if (!dmcacheRestore(dev->getMetaCacheFn(), m_metacache)) {
|
103 |
LOGERR("ohPlaylist: cache restore failed" << endl);
|
102 |
LOGERR("ohPlaylist: cache restore failed" << endl);
|
|
... |
|
... |
287 |
}
|
286 |
}
|
288 |
|
287 |
|
289 |
int OHPlaylist::play(const SoapIncoming& sc, SoapOutgoing& data)
|
288 |
int OHPlaylist::play(const SoapIncoming& sc, SoapOutgoing& data)
|
290 |
{
|
289 |
{
|
291 |
LOGDEB("OHPlaylist::play" << endl);
|
290 |
LOGDEB("OHPlaylist::play" << endl);
|
|
|
291 |
m_dev->m_mpdcli->consume(false);
|
|
|
292 |
m_dev->m_mpdcli->single(false);
|
292 |
bool ok = m_dev->m_mpdcli->play();
|
293 |
bool ok = m_dev->m_mpdcli->play();
|
293 |
maybeWakeUp(ok);
|
294 |
maybeWakeUp(ok);
|
294 |
return ok ? UPNP_E_SUCCESS : UPNP_E_INTERNAL_ERROR;
|
295 |
return ok ? UPNP_E_SUCCESS : UPNP_E_INTERNAL_ERROR;
|
295 |
}
|
296 |
}
|
296 |
|
297 |
|