diff options
author | Max Kellermann <max@duempel.org> | 2008-10-08 11:05:25 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-08 11:05:25 +0200 |
commit | 5e4be9e495677a6728e3161e39a05a081a5bff9a (patch) | |
tree | cbcf94a5d1c9236e5fff17f21cbd9e3f0557a574 /src/update.c | |
parent | 4a510a26744a78696f0c69713bf3b05881175fef (diff) | |
download | mpd-5e4be9e495677a6728e3161e39a05a081a5bff9a.tar.gz mpd-5e4be9e495677a6728e3161e39a05a081a5bff9a.tar.xz mpd-5e4be9e495677a6728e3161e39a05a081a5bff9a.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 '')
-rw-r--r-- | src/update.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/update.c b/src/update.c index 33253065f..e41a23b91 100644 --- a/src/update.c +++ b/src/update.c @@ -201,7 +201,7 @@ addToDirectory(struct directory *directory, const char *name) struct 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); |