aboutsummaryrefslogtreecommitdiffstats
path: root/src/directory.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-10-08 14:33:41 +0200
committerMax Kellermann <max@duempel.org>2011-10-08 14:51:18 +0200
commit49b84f92293e2cfc7966dc0f8b50b24c52061b9d (patch)
tree698d180c6e90e57e5e4b298b4dc3c2ace3c238fd /src/directory.c
parentb43bf4dd741f81239c7ae0c99a048ef0be6286ed (diff)
downloadmpd-49b84f92293e2cfc7966dc0f8b50b24c52061b9d.tar.gz
mpd-49b84f92293e2cfc7966dc0f8b50b24c52061b9d.tar.xz
mpd-49b84f92293e2cfc7966dc0f8b50b24c52061b9d.zip
db_print: print absolute URI of playlist entries
The protocol mandates that playlist URIs are absolute (i.e. full URI relative to the music directory, not relative to the parent directory). This adds the parameter "directory" to the "playlist" visitor method.
Diffstat (limited to 'src/directory.c')
-rw-r--r--src/directory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/directory.c b/src/directory.c
index ebc4013eb..380232761 100644
--- a/src/directory.c
+++ b/src/directory.c
@@ -188,7 +188,7 @@ directory_walk(const struct directory *directory, bool recursive,
const struct playlist_vector *pv = &directory->playlists;
for (const struct playlist_metadata *i = pv->head;
i != NULL; i = i->next)
- if (!visitor->playlist(i, ctx, error_r))
+ if (!visitor->playlist(i, directory, ctx, error_r))
return false;
}