base_uri
This commit is contained in:
parent
3ac15ca8d1
commit
b167ce2913
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue