dbUtils: don't use directoryAddSongToPlaylist() twice

In findAddInDirectory(), call playlist_append_song() directly, to have
some more type checking.
This commit is contained in:
Max Kellermann 2011-01-10 19:25:18 +01:00
parent 2b29ca796e
commit 715844fd08

View File

@ -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;
}