|
a/src/ohradio.cxx |
|
b/src/ohradio.cxx |
|
... |
|
... |
265 |
m_dev->m_mpdcli->clearQueue();
|
265 |
m_dev->m_mpdcli->clearQueue();
|
266 |
m_songid = 0;
|
266 |
m_songid = 0;
|
267 |
}
|
267 |
}
|
268 |
}
|
268 |
}
|
269 |
|
269 |
|
|
|
270 |
int OHRadio::iPlay()
|
|
|
271 |
{
|
|
|
272 |
int ret = setPlaying();
|
|
|
273 |
maybeWakeUp(ret == UPNP_E_SUCCESS);
|
|
|
274 |
return ret;
|
|
|
275 |
}
|
|
|
276 |
|
270 |
int OHRadio::play(const SoapIncoming& sc, SoapOutgoing& data)
|
277 |
int OHRadio::play(const SoapIncoming& sc, SoapOutgoing& data)
|
271 |
{
|
278 |
{
|
272 |
LOGDEB("OHRadio::play" << endl);
|
279 |
LOGDEB("OHRadio::play" << endl);
|
273 |
if (!m_active && m_dev->m_ohpr) {
|
280 |
if (!m_active && m_dev->m_ohpr) {
|
274 |
m_dev->m_ohpr->iSetSourceIndexByName("Radio");
|
281 |
m_dev->m_ohpr->iSetSourceIndexByName("Radio");
|
275 |
}
|
282 |
}
|
276 |
int ret = setPlaying();
|
283 |
return iPlay();
|
277 |
maybeWakeUp(ret == UPNP_E_SUCCESS);
|
|
|
278 |
return ret;
|
|
|
279 |
}
|
284 |
}
|
280 |
|
285 |
|
281 |
int OHRadio::pause(const SoapIncoming& sc, SoapOutgoing& data)
|
286 |
int OHRadio::pause(const SoapIncoming& sc, SoapOutgoing& data)
|
282 |
{
|
287 |
{
|
283 |
LOGDEB("OHRadio::pause" << endl);
|
288 |
LOGDEB("OHRadio::pause" << endl);
|