Switch to unified view

a/src/ohplaylist.cxx b/src/ohplaylist.cxx
...
...
41
using namespace std::placeholders;
41
using namespace std::placeholders;
42
42
43
static const string sTpProduct("urn:av-openhome-org:service:Playlist:1");
43
static const string sTpProduct("urn:av-openhome-org:service:Playlist:1");
44
static const string sIdProduct("urn:av-openhome-org:serviceId:Playlist");
44
static const string sIdProduct("urn:av-openhome-org:serviceId:Playlist");
45
45
46
OHPlaylist::OHPlaylist(UpMpd *dev, UpMpdRenderCtl *ctl)
46
OHPlaylist::OHPlaylist(UpMpd *dev, UpMpdRenderCtl *ctl, unsigned int cssleep)
47
    : UpnpService(sTpProduct, sIdProduct, dev), m_dev(dev),
47
    : UpnpService(sTpProduct, sIdProduct, dev), m_dev(dev),
48
      m_cachedirty(false), m_mpdqvers(-1)
48
      m_cachedirty(false), m_mpdqvers(-1)
49
{
49
{
50
    dev->addActionMapping(this, "Play", 
50
    dev->addActionMapping(this, "Play", 
51
                          bind(&OHPlaylist::play, this, _1, _2));
51
                          bind(&OHPlaylist::play, 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);
98
    dev->m_mpdcli->consume(false);
99
    
99
    
100
    if ((dev->m_options & UpMpd::upmpdOhMetaPersist)) {
100
    if ((dev->m_options & UpMpd::upmpdOhMetaPersist)) {
101
        dmcacheSetOpts(cssleep);
101
        if (!dmcacheRestore(dev->getMetaCacheFn(), m_metacache)) {
102
        if (!dmcacheRestore(dev->getMetaCacheFn(), m_metacache)) {
102
            LOGERR("ohPlaylist: cache restore failed" << endl);
103
            LOGERR("ohPlaylist: cache restore failed" << endl);
103
        } else {
104
        } else {
104
            LOGDEB("ohPlaylist: cache restore done" << endl);
105
            LOGDEB("ohPlaylist: cache restore done" << endl);
105
        }
106
        }