aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/UpnpDatabasePlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-11 01:36:08 +0100
committerMax Kellermann <max@duempel.org>2014-01-11 01:36:08 +0100
commit44a65fc5de15e793cdf261081481c3a357652fe6 (patch)
tree7f53074a202a1e7e3839f3fe4c53c1304664b52f /src/db/UpnpDatabasePlugin.cxx
parentf031eb1ef22373f94838b7e3357f2913ced6db71 (diff)
downloadmpd-44a65fc5de15e793cdf261081481c3a357652fe6.tar.gz
mpd-44a65fc5de15e793cdf261081481c3a357652fe6.tar.xz
mpd-44a65fc5de15e793cdf261081481c3a357652fe6.zip
db/upnp/Object: add attribute "url"
Don't store in the std::map.
Diffstat (limited to '')
-rw-r--r--src/db/UpnpDatabasePlugin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/UpnpDatabasePlugin.cxx b/src/db/UpnpDatabasePlugin.cxx
index 5228d8b60..68a24cb4f 100644
--- a/src/db/UpnpDatabasePlugin.cxx
+++ b/src/db/UpnpDatabasePlugin.cxx
@@ -237,7 +237,7 @@ static Song *
upnpItemToSong(const UPnPDirObject &dirent, const char *uri)
{
if (*uri == 0)
- uri = dirent.getprop("url");
+ uri = dirent.url.c_str();
Song *s = Song::NewFile(uri, nullptr);