diff options
author | Max Kellermann <max@duempel.org> | 2010-07-21 08:58:15 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-07-21 09:26:50 +0200 |
commit | e598922133d11cc59994f35f62fe0f454ceb4173 (patch) | |
tree | d2bcfedb8870ceb4d18a5199ce2b06593c8926a0 /src/directory.c | |
parent | e21ad70f3fa183447436c5434585288d58559a46 (diff) | |
download | mpd-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 'src/directory.c')
-rw-r--r-- | src/directory.c | 2 |
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; } |