aboutsummaryrefslogtreecommitdiffstats
path: root/src/PlaylistSong.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/PlaylistSong.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/PlaylistSong.cxx b/src/PlaylistSong.cxx
index 5de1f5c8c..f4c5b7478 100644
--- a/src/PlaylistSong.cxx
+++ b/src/PlaylistSong.cxx
@@ -26,6 +26,7 @@
#include "Tag.hxx"
#include "fs/Path.hxx"
#include "util/UriUtil.hxx"
+#include "util/Error.hxx"
#include "Song.hxx"
#include <glib.h>
@@ -102,11 +103,11 @@ playlist_check_load_song(const Song *song, const char *uri, bool secure)
if (dest == NULL)
return NULL;
} else {
- const Database *db = GetDatabase(nullptr);
+ const Database *db = GetDatabase(IgnoreError());
if (db == nullptr)
return nullptr;
- Song *tmp = db->GetSong(uri, nullptr);
+ Song *tmp = db->GetSong(uri, IgnoreError());
if (tmp == NULL)
/* not found in database */
return NULL;