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/playlist/PlaylistSong.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/playlist/PlaylistSong.cxx')
-rw-r--r-- | src/playlist/PlaylistSong.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/playlist/PlaylistSong.cxx b/src/playlist/PlaylistSong.cxx index 69f8762ab..b382994a6 100644 --- a/src/playlist/PlaylistSong.cxx +++ b/src/playlist/PlaylistSong.cxx @@ -79,6 +79,7 @@ playlist_check_load_song(DetachedSong &song) apply_song_metadata(song, tmp); return true; } else { +#ifdef ENABLE_DATABASE DetachedSong *tmp = DatabaseDetachSong(uri, IgnoreError()); if (tmp == nullptr) return false; @@ -86,6 +87,9 @@ playlist_check_load_song(DetachedSong &song) apply_song_metadata(song, *tmp); delete tmp; return true; +#else + return false; +#endif } } |