aboutsummaryrefslogtreecommitdiffstats
path: root/src/update.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-08 11:05:25 +0200
committerEric Wong <normalperson@yhbt.net>2008-10-11 19:21:47 -0700
commitd24e17ebdd5eeb16c87b897a9ecb52a5704a52b3 (patch)
treed8baf242394faccf5c73ac18367c9a542a73bad7 /src/update.c
parent5f15ba96cf5fa641d34d4e98ae8e0972fa6fef0c (diff)
downloadmpd-d24e17ebdd5eeb16c87b897a9ecb52a5704a52b3.tar.gz
mpd-d24e17ebdd5eeb16c87b897a9ecb52a5704a52b3.tar.xz
mpd-d24e17ebdd5eeb16c87b897a9ecb52a5704a52b3.zip
song: replaced all song constructors
Provide separate constructors for creating a remote song, a local song, and one for loading data from a song file. This way, we can add more assertions.
Diffstat (limited to 'src/update.c')
-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);