|
a/upmpd/ohplaylist.cxx |
|
b/upmpd/ohplaylist.cxx |
|
... |
|
... |
471 |
|
471 |
|
472 |
LOGDEB("OHPlaylist::insert: afterid " << afterid << " Uri " <<
|
472 |
LOGDEB("OHPlaylist::insert: afterid " << afterid << " Uri " <<
|
473 |
uri << " Metadata " << metadata << endl);
|
473 |
uri << " Metadata " << metadata << endl);
|
474 |
if (ok) {
|
474 |
if (ok) {
|
475 |
int id = m_dev->m_mpdcli->insertAfterId(uri, afterid);
|
475 |
int id = m_dev->m_mpdcli->insertAfterId(uri, afterid);
|
476 |
if ((ok = (id != -1)))
|
476 |
if ((ok = (id != -1))) {
|
477 |
m_metacache[id] = metadata;
|
477 |
m_metacache[id] = metadata;
|
|
|
478 |
data.addarg("NewId", makesint(id));
|
|
|
479 |
}
|
478 |
}
|
480 |
}
|
479 |
maybeWakeUp(ok);
|
481 |
maybeWakeUp(ok);
|
480 |
return ok ? UPNP_E_SUCCESS : UPNP_E_INTERNAL_ERROR;
|
482 |
return ok ? UPNP_E_SUCCESS : UPNP_E_INTERNAL_ERROR;
|
481 |
}
|
483 |
}
|
482 |
|
484 |
|