Switch to unified view

a/libupnpp/control/ohplaylist.cxx b/libupnpp/control/ohplaylist.cxx
...
...
78
}
78
}
79
79
80
void OHPlaylist::evtCallback(
80
void OHPlaylist::evtCallback(
81
    const std::unordered_map<std::string, std::string>& props)
81
    const std::unordered_map<std::string, std::string>& props)
82
{
82
{
83
    LOGDEB("OHPlaylist::evtCallback: m_reporter: " << m_reporter << endl);
83
    LOGDEB1("OHPlaylist::evtCallback: m_reporter: " << m_reporter << endl);
84
    for (auto& entry: props) {
84
    for (auto& entry: props) {
85
        if (!m_reporter) {
85
        if (!m_reporter) {
86
            LOGDEB1("OHPlaylist::evtCallback: " << entry.first << " -> " 
86
            LOGDEB1("OHPlaylist::evtCallback: " << entry.first << " -> " 
87
                    << entry.second << endl);
87
                    << entry.second << endl);
88
            continue;
88
            continue;
...
...
359
    int ret = runAction(args, data);
359
    int ret = runAction(args, data);
360
    if (ret != UPNP_E_SUCCESS) {
360
    if (ret != UPNP_E_SUCCESS) {
361
        return ret;
361
        return ret;
362
    }
362
    }
363
    if (!data.get("Token", tokp)) {
363
    if (!data.get("Token", tokp)) {
364
        LOGERR("OHPlaylist::insert: missing Token in response" << endl);
364
        LOGERR("OHPlaylist::idArray: missing Token in response" << endl);
365
        return UPNP_E_BAD_RESPONSE;
365
        return UPNP_E_BAD_RESPONSE;
366
    }
366
    }
367
    string arraydata;
367
    string arraydata;
368
    if (!data.get("Array", &arraydata)) {
368
    if (!data.get("Array", &arraydata)) {
369
        LOGERR("OHPlaylist::insert: missing Array in response" << endl);
369
        LOGINF("OHPlaylist::idArray: missing Array in response" << endl);
370
        return UPNP_E_BAD_RESPONSE;
370
        // We get this for an empty array ? This would need to be investigated
371
    }
371
    }
372
    idArrayToVec(arraydata, ids);
372
    idArrayToVec(arraydata, ids);
373
    return 0;
373
    return 0;
374
}
374
}
375
375