aboutsummaryrefslogtreecommitdiffstats
path: root/src/db
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-23 00:03:38 +0100
committerMax Kellermann <max@duempel.org>2014-01-23 00:06:17 +0100
commitb167ce2913690d57247b960638054a546f19d323 (patch)
tree4d0e7ed1add8d763aefc1f4164929e8771005c4b /src/db
parent3ac15ca8d170c0d2d58cff8b6d9ea5019475805f (diff)
downloadmpd-b167ce2913690d57247b960638054a546f19d323.tar.gz
mpd-b167ce2913690d57247b960638054a546f19d323.tar.xz
mpd-b167ce2913690d57247b960638054a546f19d323.zip
base_uri
Diffstat (limited to 'src/db')
-rw-r--r--src/db/UpnpDatabasePlugin.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/db/UpnpDatabasePlugin.cxx b/src/db/UpnpDatabasePlugin.cxx
index c36fd4c2a..ed0794f35 100644
--- a/src/db/UpnpDatabasePlugin.cxx
+++ b/src/db/UpnpDatabasePlugin.cxx
@@ -567,6 +567,10 @@ UpnpDatabase::VisitServer(const ContentDirectoryService &server,
return SearchSongs(server, tdirent.m_id.c_str(), selection,
visit_song, error);
+ const char *const base_uri = selection.uri.empty()
+ ? server.getFriendlyName()
+ : selection.uri.c_str();
+
if (tdirent.type == UPnPDirObject::Type::ITEM) {
// Target is a song. Not too sure we ever get there actually, maybe
// this is always catched by the special uri test above.