This commit is contained in:
Max Kellermann 2014-01-23 00:03:38 +01:00
parent 3ac15ca8d1
commit b167ce2913
1 changed files with 4 additions and 0 deletions

View File

@ -567,6 +567,10 @@ UpnpDatabase::VisitServer(const ContentDirectoryService &server,
return SearchSongs(server, tdirent.m_id.c_str(), selection, return SearchSongs(server, tdirent.m_id.c_str(), selection,
visit_song, error); visit_song, error);
const char *const base_uri = selection.uri.empty()
? server.getFriendlyName()
: selection.uri.c_str();
if (tdirent.type == UPnPDirObject::Type::ITEM) { if (tdirent.type == UPnPDirObject::Type::ITEM) {
// Target is a song. Not too sure we ever get there actually, maybe // Target is a song. Not too sure we ever get there actually, maybe
// this is always catched by the special uri test above. // this is always catched by the special uri test above.