aboutsummaryrefslogtreecommitdiffstats
path: root/src/directory.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-08 10:48:55 +0200
committerMax Kellermann <max@duempel.org>2008-10-08 10:48:55 +0200
commit3c1142cbcbd428ac5784ef098ac5e7a393647aa6 (patch)
tree419db2c93e475481026572a4c7f5012b31090535 /src/directory.c
parente79aacf1db334ba920de0732631e999ab8144721 (diff)
downloadmpd-3c1142cbcbd428ac5784ef098ac5e7a393647aa6.tar.gz
mpd-3c1142cbcbd428ac5784ef098ac5e7a393647aa6.tar.xz
mpd-3c1142cbcbd428ac5784ef098ac5e7a393647aa6.zip
update: merged exploreDirectory() into updateDirectory()
exploreDirectory() duplicates some code in updateDirectory(). Merge both functions, and use directory_is_empty() to determine whether update or explore mode should be used.
Diffstat (limited to '')
-rw-r--r--src/directory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/directory.c b/src/directory.c
index d1f0e3300..b5c5e67c2 100644
--- a/src/directory.c
+++ b/src/directory.c
@@ -489,7 +489,7 @@ int traverseAllIn(const char *name,
void directory_init(void)
{
music_root = newDirectory(NULL, NULL);
- exploreDirectory(music_root);
+ updateDirectory(music_root);
stats.numberOfSongs = countSongsIn(NULL);
stats.dbPlayTime = sumSongTimesIn(NULL);
}