aboutsummaryrefslogtreecommitdiffstats
path: root/src/directory.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-08 10:48:55 +0200
committerEric Wong <normalperson@yhbt.net>2008-10-11 19:21:47 -0700
commitb5d3970c075987d7439e2b60ea043606f46a3bab (patch)
tree18dbef270a5df1c0a6c20ab63f906f871b873ec4 /src/directory.c
parent7b5c84829768b8ee2ac0ad131045736afc586643 (diff)
downloadmpd-b5d3970c075987d7439e2b60ea043606f46a3bab.tar.gz
mpd-b5d3970c075987d7439e2b60ea043606f46a3bab.tar.xz
mpd-b5d3970c075987d7439e2b60ea043606f46a3bab.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 38f32c271..83835c15a 100644
--- a/src/directory.c
+++ b/src/directory.c
@@ -506,7 +506,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);
}