--- a/src/ohplaylist.cxx
+++ b/src/ohplaylist.cxx
@@ -43,7 +43,7 @@
static const string sTpProduct("urn:av-openhome-org:service:Playlist:1");
static const string sIdProduct("urn:av-openhome-org:serviceId:Playlist");
-OHPlaylist::OHPlaylist(UpMpd *dev, UpMpdRenderCtl *ctl, unsigned int cssleep)
+OHPlaylist::OHPlaylist(UpMpd *dev, unsigned int cssleep)
: UpnpService(sTpProduct, sIdProduct, dev), m_dev(dev),
m_cachedirty(false), m_mpdqvers(-1)
{
@@ -295,12 +295,16 @@
return ok ? UPNP_E_SUCCESS : UPNP_E_INTERNAL_ERROR;
}
-int OHPlaylist::stop(const SoapIncoming& sc, SoapOutgoing& data)
-{
- LOGDEB("OHPlaylist::stop" << endl);
+int OHPlaylist::iStop()
+{
bool ok = m_dev->m_mpdcli->stop();
maybeWakeUp(ok);
return ok ? UPNP_E_SUCCESS : UPNP_E_INTERNAL_ERROR;
+}
+int OHPlaylist::stop(const SoapIncoming& sc, SoapOutgoing& data)
+{
+ LOGDEB("OHPlaylist::stop" << endl);
+ return iStop();
}
int OHPlaylist::next(const SoapIncoming& sc, SoapOutgoing& data)
@@ -590,6 +594,11 @@
return ok ? UPNP_E_SUCCESS : UPNP_E_INTERNAL_ERROR;
}
+void OHPlaylist::resetQVers()
+{
+ m_mpdqvers = -1;
+}
+
bool OHPlaylist::insertUri(int afterid, const string& uri,
const string& metadata, int *newid)
{