diff options
author | Max Kellermann <max@duempel.org> | 2008-10-08 10:48:55 +0200 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-10-11 19:21:47 -0700 |
commit | b5d3970c075987d7439e2b60ea043606f46a3bab (patch) | |
tree | 18dbef270a5df1c0a6c20ab63f906f871b873ec4 /src/directory.c | |
parent | 7b5c84829768b8ee2ac0ad131045736afc586643 (diff) | |
download | mpd-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.c | 2 |
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); } |