diff options
Diffstat (limited to '')
-rw-r--r-- | src/DatabaseQueue.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/DatabaseQueue.cxx b/src/DatabaseQueue.cxx index 697771273..0ed073285 100644 --- a/src/DatabaseQueue.cxx +++ b/src/DatabaseQueue.cxx @@ -24,6 +24,7 @@ #include "Partition.hxx" #include "util/Error.hxx" #include "DetachedSong.hxx" +#include "Mapper.hxx" #include <functional> @@ -31,7 +32,8 @@ static bool AddToQueue(Partition &partition, const Song &song, Error &error) { PlaylistResult result = - partition.playlist.AppendSong(partition.pc, DetachedSong(song), + partition.playlist.AppendSong(partition.pc, + map_song_detach(song), nullptr); if (result != PlaylistResult::SUCCESS) { error.Set(playlist_domain, int(result), "Playlist error"); |