aboutsummaryrefslogtreecommitdiffstats
path: root/src/SongUpdate.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-18 18:20:54 +0100
committerMax Kellermann <max@duempel.org>2014-01-21 21:06:56 +0100
commit5d4b450c52b3af92a03a8380a40dc703f0df4233 (patch)
tree9f861173b3861c544670dfb3f38b436902f67b63 /src/SongUpdate.cxx
parent483b1f51c96303f2b587870cce6803cc6f699158 (diff)
downloadmpd-5d4b450c52b3af92a03a8380a40dc703f0df4233.tar.gz
mpd-5d4b450c52b3af92a03a8380a40dc703f0df4233.tar.xz
mpd-5d4b450c52b3af92a03a8380a40dc703f0df4233.zip
DetachedSong: add attribute "real_uri"
Prepare for UPnP songs that retain there database identity.
Diffstat (limited to '')
-rw-r--r--src/SongUpdate.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SongUpdate.cxx b/src/SongUpdate.cxx
index ee70085f3..2eb0a0966 100644
--- a/src/SongUpdate.cxx
+++ b/src/SongUpdate.cxx
@@ -130,7 +130,7 @@ DetachedSong::Update()
{
if (IsAbsoluteFile()) {
const AllocatedPath path_fs =
- AllocatedPath::FromUTF8(uri.c_str());
+ AllocatedPath::FromUTF8(GetRealURI());
struct stat st;
if (!StatFile(path_fs, st) || !S_ISREG(st.st_mode))