Commit 715844fd authored by Max Kellermann's avatar Max Kellermann

dbUtils: don't use directoryAddSongToPlaylist() twice

In findAddInDirectory(), call playlist_append_song() directly, to have some more type checking.
parent 2b29ca79
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment