diff options
author | Max Kellermann <max@duempel.org> | 2014-01-23 00:03:38 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-23 00:06:17 +0100 |
commit | b167ce2913690d57247b960638054a546f19d323 (patch) | |
tree | 4d0e7ed1add8d763aefc1f4164929e8771005c4b | |
parent | 3ac15ca8d170c0d2d58cff8b6d9ea5019475805f (diff) | |
download | mpd-b167ce2913690d57247b960638054a546f19d323.tar.gz mpd-b167ce2913690d57247b960638054a546f19d323.tar.xz mpd-b167ce2913690d57247b960638054a546f19d323.zip |
base_uri
-rw-r--r-- | src/db/UpnpDatabasePlugin.cxx | 4 |
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. |