aboutsummaryrefslogtreecommitdiffstats
path: root/src/directory.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-07-21 08:58:15 +0200
committerMax Kellermann <max@duempel.org>2010-07-21 09:26:50 +0200
commite598922133d11cc59994f35f62fe0f454ceb4173 (patch)
treed2bcfedb8870ceb4d18a5199ce2b06593c8926a0 /src/directory.c
parente21ad70f3fa183447436c5434585288d58559a46 (diff)
downloadmpd-e598922133d11cc59994f35f62fe0f454ceb4173.tar.gz
mpd-e598922133d11cc59994f35f62fe0f454ceb4173.tar.xz
mpd-e598922133d11cc59994f35f62fe0f454ceb4173.zip
update: store playlist files in database
Don't open the music directory for each "lsinfo" call. Get the list of playlist files from the memory database.
Diffstat (limited to '')
-rw-r--r--src/directory.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/directory.c b/src/directory.c
index 0ace67dde..0a466a517 100644
--- a/src/directory.c
+++ b/src/directory.c
@@ -42,6 +42,8 @@ directory_new(const char *path, struct directory *parent)
directory->parent = parent;
memcpy(directory->path, path, pathlen + 1);
+ playlist_vector_init(&directory->playlists);
+
return directory;
}