dbUtils: don't use directoryAddSongToPlaylist() twice
In findAddInDirectory(), call playlist_append_song() directly, to have some more type checking.
This commit is contained in:
parent
2b29ca796e
commit
715844fd08
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user