diff options
Diffstat (limited to '')
-rw-r--r-- | src/PlaylistSave.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/PlaylistSave.cxx b/src/PlaylistSave.cxx index 8eeab0f62..d9a0b4a47 100644 --- a/src/PlaylistSave.cxx +++ b/src/PlaylistSave.cxx @@ -55,10 +55,14 @@ playlist_print_song(FILE *file, const DetachedSong &song) void playlist_print_uri(FILE *file, const char *uri) { - auto path = playlist_saveAbsolutePaths && !uri_has_scheme(uri) && + auto path = +#ifdef ENABLE_DATABASE + playlist_saveAbsolutePaths && !uri_has_scheme(uri) && !PathTraitsUTF8::IsAbsolute(uri) ? map_uri_fs(uri) - : AllocatedPath::FromUTF8(uri); + : +#endif + AllocatedPath::FromUTF8(uri); if (!path.IsNull()) fprintf(file, "%s\n", path.c_str()); |