diff options
author | Max Kellermann <max@duempel.org> | 2011-01-10 19:25:18 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2011-01-10 19:46:14 +0100 |
commit | 715844fd089d3baf17d7080b47434fca8fb60b1d (patch) | |
tree | dfb47b642e360966448ceb850deb821f2b2898e9 /src/dbUtils.c | |
parent | 2b29ca796edfc765b498463dac732663142911f2 (diff) |
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.c | 2 |
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; } |