diff options
author | Max Kellermann <max@duempel.org> | 2014-01-30 20:29:48 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-30 20:39:40 +0100 |
commit | 4465e2c46bbed438377dc4a99df333bd5c058d5e (patch) | |
tree | cbc1d27aad939689f44b0ac3542a6ca1777b9dc1 /src/queue/QueueSave.cxx | |
parent | 34b309b99aa2f274308f19974c428e1c7ac5d66f (diff) | |
download | mpd-4465e2c46bbed438377dc4a99df333bd5c058d5e.tar.gz mpd-4465e2c46bbed438377dc4a99df333bd5c058d5e.tar.xz mpd-4465e2c46bbed438377dc4a99df333bd5c058d5e.zip |
db: add compile-time option to disable database
Diffstat (limited to 'src/queue/QueueSave.cxx')
-rw-r--r-- | src/queue/QueueSave.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/queue/QueueSave.cxx b/src/queue/QueueSave.cxx index 11c61aa9a..051054da2 100644 --- a/src/queue/QueueSave.cxx +++ b/src/queue/QueueSave.cxx @@ -110,8 +110,10 @@ queue_load_song(TextFile &file, const char *line, Queue &queue) if (uri_has_scheme(uri)) { song = new DetachedSong(uri); } else { +#ifdef ENABLE_DATABASE song = DatabaseDetachSong(uri, IgnoreError()); if (song == nullptr) +#endif return; } } |