aboutsummaryrefslogtreecommitdiff
path: root/src/update.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-18 16:56:07 +0100
committerMax Kellermann <max@duempel.org>2009-01-18 16:56:07 +0100
commit1f0dfb4407344996bbe874525413275b79da12b3 (patch)
tree6da8c04bf1e3c6143927d3a69eecb3532f88939f /src/update.c
parent9933144de7389b12b2a75cfb4320baecefa952af (diff)
mapper: make the music_directory optional
Without a music_directory, MPD is an excellent streaming client.
Diffstat (limited to 'src/update.c')
-rw-r--r--src/update.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/update.c b/src/update.c
index f2724762..1edb8cc0 100644
--- a/src/update.c
+++ b/src/update.c
@@ -680,6 +680,9 @@ directory_update_init(char *path)
{
assert(g_thread_self() == main_task);
+ if (!mapper_has_music_directory())
+ return 0;
+
if (progress != UPDATE_PROGRESS_IDLE) {
unsigned next_task_id;