diff options
Diffstat (limited to '')
-rw-r--r-- | src/dbUtils.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dbUtils.c b/src/dbUtils.c index 654867601..f83ae4c21 100644 --- a/src/dbUtils.c +++ b/src/dbUtils.c @@ -26,6 +26,7 @@ #include "tag.h" #include "tagTracker.h" #include "log.h" +#include "storedPlaylist.h" typedef struct _ListCommandItem { mpd_sint8 tagType; @@ -177,7 +178,9 @@ static int directoryAddSongToPlaylist(int fd, Song * song, void *data) static int directoryAddSongToStoredPlaylist(int fd, Song *song, void *data) { - return addSongToStoredPlaylist(fd, song, (char *)data); + if (appendSongToStoredPlaylistByPath(fd, (char *)data, song) != 0) + return -1; + return 0; } int addAllIn(int fd, char *name) |