Commit b167ce29 authored by Max Kellermann's avatar Max Kellermann

base_uri

parent 3ac15ca8
...@@ -567,6 +567,10 @@ UpnpDatabase::VisitServer(const ContentDirectoryService &server, ...@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment