diff options
author | Max Kellermann <max@duempel.org> | 2013-01-02 23:06:10 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-02 23:06:10 +0100 |
commit | 0eb05b827fc239854773b43baff82581d65f9c5b (patch) | |
tree | c4f5d1aba7b4aad89826707310b6b75573453408 /src/Song.cxx | |
parent | 0c245bc2712f5d38507b8d421cdc0a7e002a3398 (diff) | |
download | mpd-0eb05b827fc239854773b43baff82581d65f9c5b.tar.gz mpd-0eb05b827fc239854773b43baff82581d65f9c5b.tar.xz mpd-0eb05b827fc239854773b43baff82581d65f9c5b.zip |
Directory: turn functions to methods
Diffstat (limited to 'src/Song.cxx')
-rw-r--r-- | src/Song.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Song.cxx b/src/Song.cxx index deefe3c21..9da21645c 100644 --- a/src/Song.cxx +++ b/src/Song.cxx @@ -161,10 +161,10 @@ song_get_uri(const struct song *song) assert(song != nullptr); assert(*song->uri); - if (!song_in_database(song) || directory_is_root(song->parent)) + if (!song_in_database(song) || song->parent->IsRoot()) return g_strdup(song->uri); else - return g_strconcat(directory_get_path(song->parent), + return g_strconcat(song->parent->GetPath(), "/", song->uri, nullptr); } |