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