From 715844fd089d3baf17d7080b47434fca8fb60b1d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 10 Jan 2011 19:25:18 +0100 Subject: dbUtils: don't use directoryAddSongToPlaylist() twice In findAddInDirectory(), call playlist_append_song() directly, to have some more type checking. --- src/dbUtils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3