aboutsummaryrefslogtreecommitdiffstats
path: root/src/dbUtils.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-01-10 19:25:18 +0100
committerMax Kellermann <max@duempel.org>2011-01-10 19:46:14 +0100
commit715844fd089d3baf17d7080b47434fca8fb60b1d (patch)
treedfb47b642e360966448ceb850deb821f2b2898e9 /src/dbUtils.c
parent2b29ca796edfc765b498463dac732663142911f2 (diff)
downloadmpd-715844fd089d3baf17d7080b47434fca8fb60b1d.tar.gz
mpd-715844fd089d3baf17d7080b47434fca8fb60b1d.tar.xz
mpd-715844fd089d3baf17d7080b47434fca8fb60b1d.zip
dbUtils: don't use directoryAddSongToPlaylist() twice
In findAddInDirectory(), call playlist_append_song() directly, to have some more type checking.
Diffstat (limited to 'src/dbUtils.c')
-rw-r--r--src/dbUtils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dbUtils.c b/src/dbUtils.c
index f950d42cc..888e757a5 100644
--- a/src/dbUtils.c
+++ b/src/dbUtils.c
@@ -205,7 +205,7 @@ findAddInDirectory(struct song *song, void *_data)
struct search_data *data = _data;
if (locate_song_match(song, data->criteria))
- return directoryAddSongToPlaylist(song, data);
+ return playlist_append_song(&g_playlist, song, NULL);
return 0;
}