aboutsummaryrefslogtreecommitdiffstats
path: root/src/update.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/update.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/update.c b/src/update.c
index 674ad0519..c40f25694 100644
--- a/src/update.c
+++ b/src/update.c
@@ -195,7 +195,7 @@ addToDirectory(struct directory *directory, const char *name)
struct mpd_song *song;
const char *shortname = mpd_basename(name);
- if (!(song = newSong(shortname, directory)))
+ if (!(song = song_file_load(shortname, directory)))
return -1;
songvec_add(&directory->songs, song);
LOG("added %s\n", name);